CodeIgniter Forums
CRUD and one to many relation - 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: CRUD and one to many relation (/showthread.php?tid=2847)



CRUD and one to many relation - El Forum - 08-28-2007

[eluser]abmcr[/eluser]
What is the best way with CI for managing , in an admin back end, table with the relation one to many?
I use with satisfaction the Rapyd library, (specialy the iframe field is very useful and fast to use) but do you know other simple and rapid (! ;-) ) methods? Thank you

Ciao

Andrea - ITALY


CRUD and one to many relation - El Forum - 08-28-2007

[eluser]thurting[/eluser]
There is no ORM in CI so you will have to create a JOIN either with the Active Record class or by writing out the SQL yourself - I usually do the latter.


CRUD and one to many relation - El Forum - 08-29-2007

[eluser]abmcr[/eluser]
Yes... the problem is not the creation of SQL (with the JOIN) but the data presentation in a view.... Rapyd let you to present the related filed in a best way... Others system? Ciao!