CodeIgniter Forums
CodeIgniter and ORM - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: CodeIgniter and ORM (/showthread.php?tid=26490)



CodeIgniter and ORM - El Forum - 01-14-2010

[eluser]kidsman[/eluser]
hi

I am new to CI.I had tried earlier CI.Now I am again very interested because it has an ORM but I am confused which one I should use.I need to satisfy one to -> one,One to->Many,Many to->One,Many to -> Many relation.

How can I implement this in CI. or CI has any built in method for ORM.I Need to work with CI,But I think it doesn't have ORM Support.ORM Saves our life.

Please help me


CodeIgniter and ORM - El Forum - 01-15-2010

[eluser]flaky[/eluser]
use Doctrine

user guide how to setup and use
http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup


CodeIgniter and ORM - El Forum - 01-15-2010

[eluser]kidsman[/eluser]
thanks
I got some more links.But I don't know which one I should pick up to develop the site and easy to learn .I am so confused.

<a href="http://komunitasweb.com/2009/04/codeigniter-tutorial-orm-with-datamapper/">http://komunitasweb.com/2009/04/codeigniter-tutorial-orm-with-datamapper/</a>

another one : IgnitedRecord


CodeIgniter and ORM - El Forum - 01-15-2010

[eluser]Jelmer[/eluser]
I'd suggest RapidDataMapper (RDM), a new ORM from the same guy as IgnitedRecord. I think he has abandoned IgnitedRecord so I wouldn't use that one.
The biggest CI ORM is probably DataMapper Overzealous (DMZ) edition.

I chose RDM because I like it's approach: objects retrieved from the DB are clean objects without their own methods or hidden properties.

I'd suggest you look through the User Guides of each of the big ones that are still developed (RDM, DMZ, Doctrine) and see which approach suites you best.


CodeIgniter and ORM - El Forum - 01-15-2010

[eluser]kidsman[/eluser]
Thanks

how can I Implement RapidDataMapper (RDM) with CI ? Any libraries available ?


CodeIgniter and ORM - El Forum - 01-15-2010

[eluser]danmontgomery[/eluser]
You might find something if you search the forums.


CodeIgniter and ORM - El Forum - 01-15-2010

[eluser]kidsman[/eluser]
Thanks,
But How can I include both?

how to use RapidDataMapper with CodeIgniter :down:


how one->one ,one to ->many,Many ->many handled in CI using RapidDataMapper any examples??

I used cakephp.I am looking for less code to write in ORM part.


CodeIgniter and ORM - El Forum - 01-15-2010

[eluser]Jelmer[/eluser]
Implementing RDM with CI isn't difficult, the code for loading it as the default DB access method is included. For usage examples and the very complete manual you can go to rapiddatamapper.com and a couple more examples are in the forum topic within these forums (as suggested before: use the forum search).