Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter and ORM
#1

[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
#2

[eluser]flaky[/eluser]
use Doctrine

user guide how to setup and use
http://www.phpandstuff.com/articles/code...-and-setup
#3

[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
#4

[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.
#5

[eluser]kidsman[/eluser]
Thanks

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

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

[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.
#8

[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).




Theme © iAndrew 2016 - Forum software by © MyBB