dev-master
9999999-dev https://github.com/samsonasik/SanAuthWithDbSaveHandlerZF2 Module that utilize example of modelling with Zend\Db
MIT
The Requires
- php >=5.3.3
zf2 db modelling
ZF2 Module that utilize example of modelling with Zend\Db
It show us what property/column comes from., (*1)
DROP TABLE IF EXISTS `album`; CREATE TABLE IF NOT EXISTS `album` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `artist` varchar(255) NOT NULL, `title` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `album` -- INSERT INTO `album` (`id`, `artist`, `title`) VALUES (1, 'Bruno Mars', 'Go'), (2, 'Syahrini', 'Membahana'), (3, 'Justin Timberlake', 'Love'); -- -------------------------------------------------------- -- -- Table structure for table `track` -- DROP TABLE IF EXISTS `track`; CREATE TABLE IF NOT EXISTS `track` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `album_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `track` -- INSERT INTO `track` (`id`, `title`, `album_id`) VALUES (1, 'Sesuatu', 2), (2, 'Aku Tak Biasa', 2), (3, 'Grenade', 1), (4, 'I like it!', 1);
http://yourzf2app/zenddbmodelling
reference : https://gist.github.com/ralphschindler/6910421, (*2)
ZF2 Module that utilize example of modelling with Zend\Db
MIT
zf2 db modelling