recommendations on ORM vs custom data mapper

#6
[eluser]WanWizard[/eluser]
[quote author="Chillahan" date="1304981137"]I looked at DataMapper but it seemed discontinued - I did find a release date from January of this year in the link you sent, so I guess I was unsuccessful in finding the updated version![/quote]
Don't know where you looked (but I'd like to know), but Datamapper is indeed far from dead!

I can't comment on other solutions, but with Datamapper, the ORM models replace the standard CI models.
Datamapper provides them with a lot of functionality to make relations and CRUD operations. You simply add the methods needed by your business logic.

As per your example:
Code:
// get all classes by id
$myClass = new Class();
$myClass->get();

// create a class object for class $classID
$myClass = new Class($classID);

// for this class, get all grades below a value
$myClass->grades->where('grade <', $grade)->get();

// some complicated calculations in a custom model method called getgrades()
$myClass->getgrades();


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.