Using Zend\Db’s TableGateway and HydratingResultSet to return rows as custom entity/model objects in ZF2
The new Zend\Db in Zend Framework 2 has a handy feature which allows you to specify your own entity/model class to represent rows in your database tables. This means you can tell Zend\Db to return each row as a populated instance of your own custom objects. Keep in mind that this is simply a convenience feature, and not meant to serve as a fully-featured ORM.
Want to have your say? just login


Be first to show your opinion !!!