stephangroen/propel-laravel

Make Propel models work with Laravel Form::model() without making it an array
44 3
Install
composer require stephangroen/propel-laravel
PHP:>=5.3.7
License:MIT
Last Updated:Mar 10, 2015
Links: GitHub  ·  Packagist
Maintainer: stephangroen

propel-laravel

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.

Usage

build.properties

propel.behavior.laravelmodel.class = path.to.LaravelModelBehavior

schema.xml

<database name="mydatabase" defaultIdMethod="native">
	<behavior name="laravelmodel" />
	....
</database>

Integrating Propel in Laravel 4

Here is a tutorial on how to integrate Propel in Laravel 4.

Related Packages

propel/propel-laravel

Propel integration for Laravel framework.

14,346 31
allboo/propel-laravel

Propel integration for Laravel framework.

456 5
marcoshoo/propel-eloquent

Propel2 behavior that makes model classes virtually extend a Eloquent model clas...

368 1
vlados/laravel-blade-crawler-detect

Boost Lighthouse and PageSpeed scores by hiding cookie banners, chat widgets and...

5,257 0