recommendations on ORM vs custom data mapper

#11
[eluser]WanWizard[/eluser]
Sorry, I was correcting it while you were replying. Wink

So yes, you define all relations in the model. There is a one-to-one mapping between models and tables.
The model extends the Datamapper class, and as such inherits all datamapper methods for navigating the table and the models related tables.

Datamapper also supports out of the box read and write validation rules. This means that no matter where in your code you read or write a record, validation is done only once, and consistent. No more custom checks in your controllers. (p.s. you can use read rules for example to unserialize() a stored serialized array to it can be presented to your code as an array. When you save it, the save validation rule can serialize() it again, completely transparent for your controller.

I can't comment on Doctrine. I used v1, and that was bulky and tearjerking slow. I hear v2 is better, but I don't have any comparison.

Datamapper is compatible with both Modular CI and Modular Extensions HMVC (it uses CI 2.x packages feature to extend the model search to modules).

http://datamapper.wanwizard.eu/pages/get...arted.html gives a nice overview of how things work...


Messages In This Thread
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 12:04 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 12:11 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 03:33 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 11:34 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 11:45 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 01:44 PM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 01:54 PM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 01:56 PM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 02:08 PM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 02:10 PM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 03:04 PM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 05:47 PM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 09:11 PM
recommendations on ORM vs custom data mapper - by El Forum - 05-09-2011, 11:50 PM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 12:23 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 12:53 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 12:59 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 03:31 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 05:03 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 05:08 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 07:15 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 07:19 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 07:29 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 08:10 AM
recommendations on ORM vs custom data mapper - by El Forum - 05-10-2011, 10:28 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.