CodeIgniter Forums
Performing a complex select with Datamapper ORM - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Performing a complex select with Datamapper ORM (/showthread.php?tid=876)



Performing a complex select with Datamapper ORM - greati - 01-24-2015

Hello,

I'm using the DataMapper framework for ORM and I have this structure in my database:

A has many B
B has many C

And I need to get all the C rows related to an A object.

I tried to get all the B related to A, then iterate over these B's to get the C's, but I don't know if this is the right way.

Could you, please, help me in this task?

Thank you!