PHPackages                             ansas/propel-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. ansas/propel-helper

ActiveLibrary[Database &amp; ORM](/categories/database)

ansas/propel-helper
===================

Propel helper - helper classes (traits) for Propel2 ORM

1.4.0(7y ago)4905MITPHP

Since Aug 24Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/ansas/propel-helper)[ Packagist](https://packagist.org/packages/ansas/propel-helper)[ RSS](/packages/ansas-propel-helper/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (11)Used By (0)

Propel helper
=============

[](#propel-helper)

[![Latest Stable Version](https://camo.githubusercontent.com/5ab8d14f984735af0f92d1be8f4f198807f5972b57768da5d976032ea53ebe55/68747470733a2f2f706f7365722e707567782e6f72672f616e7361732f70726f70656c2d68656c7065722f762f737461626c65)](https://packagist.org/packages/ansas/propel-helper)[![Total Downloads](https://camo.githubusercontent.com/128b99dfae1ef0a75c1c6ec144ca2d1aa39d6e5b0dacbe34128ad917d5f226e4/68747470733a2f2f706f7365722e707567782e6f72672f616e7361732f70726f70656c2d68656c7065722f646f776e6c6f616473)](https://packagist.org/packages/ansas/propel-helper)[![Latest Unstable Version](https://camo.githubusercontent.com/1b1808b52d1e9dafcc336159dacaec49c49bd245933d869ac2507e4141e7a53d/68747470733a2f2f706f7365722e707567782e6f72672f616e7361732f70726f70656c2d68656c7065722f762f756e737461626c65)](https://packagist.org/packages/ansas/propel-helper)[![License](https://camo.githubusercontent.com/e236f9cd0410bedf115b38706ad89fa4a49d49357bc3bdc6f0d25e5d18f18769/68747470733a2f2f706f7365722e707567782e6f72672f616e7361732f70726f70656c2d68656c7065722f6c6963656e7365)](https://packagist.org/packages/ansas/propel-helper)

Helper classes (traits) for [Propel2](https://github.com/propelorm/Propel2) ORM.

Ansas\\Propel\\Helper\\ReadOnly
-------------------------------

[](#ansaspropelhelperreadonly)

This trait is a workaround for the Propel bug that you cannot use `joinWith()` methods anymore when setting tables to `readOnly="true"` in Propel's `schema.xml` file. So instead of making tables "readonly" in the scheme just add this trait to every child model you want to make readonly.

For details see [propelorm/Propel2#629](https://github.com/propelorm/Propel2/issues/629)

Example usage:

```
