Package Data | |
---|---|
Maintainer Username: | stephangroen |
Maintainer Contact: | opensource@stephangroen.nl (Stephan Groen) |
Package Create Date: | 2013-06-12 |
Package Last Update: | 2015-03-10 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-24 03:01:50 |
Package Statistics | |
---|---|
Total Downloads: | 44 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 1 |
Total Forks: | 2 |
Total Open Issues: | 0 |
Make Propel models work with Laravel Form::model() without making it an array.
Implements ArrayAccess so Laravel can check for set properties and adds __isset() and __get() on the model to help Laravel get the data.
All data with __get() uses the normal Propel getters. Checks are in place for normal column names and PhpNames.
propel.behavior.laravelmodel.class = path.to.LaravelModelBehavior
<database name="mydatabase" defaultIdMethod="native">
<behavior name="laravelmodel" />
....
</database>
Here is a tutorial on how to integrate Propel in Laravel 4.