• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Performing a complex select with Datamapper ORM


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!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.