dev-master
9999999-dev https://github.com/MarshallHouse/zpropelUse Propel ORM with Zend Framework 2
MIT
The Requires
- php >=5.3.0
- propel/propel1 ~1.6
zf2 zend framework propel orm
Use Propel ORM with Zend Framework 2
Propel ORM module for Zend Framework 2, (*1)
"require": { "4zend/zpropel": "dev-master" }
, (*2)
View the demo directory for an example project and then create your project files at: data/zpropel/proxy
, (*3)
php index.php propel-gen
Once your project is "built" you can access the classes from anywhere using the "Zpropel" namespace., (*4)
i.e. $author = new \Zpropel\Author();
, (*5)
Zpropel comes with a Propel behavior designed to trigger Propel "hooks" as ZF2 EventManager events., (*6)
i.e. Observe a shared event, (*7)
$eventManager->getSharedManager()->attach('zpropel', 'author_preSave', function($e){ $author = $e->getTarget(); // do something }, 100);`
Use Propel ORM with Zend Framework 2
MIT
zf2 zend framework propel orm