Propel2 behavior that makes model classes virtually extend a Eloquent model class
Add MarcosHoo\PropelEloquent
as a requirement to composer.json:
{
"require": {
"marcoshoo/propel-eloquent": "dev-master"
}
}
Update your packages with composer update
or install with composer install
.
Add the eloquent
behavior in schema.xml:
.
.
.
<behavior name="eloquent" />
</table>
Regenerate your propel models:
php artisan propel:model:build