Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Relation of relation
If I Have 3 Models wich extends ORM
properties: biblio_id(pk), title
when I perform $item=Model_Printqueue::find($id)
Can I somehow get
thanks for your replies
Your $item here is not an instance of Model_Item, but of Model_Printqueue. So it should be
And that should work without problems.
If the related object isn't loaded yet, it will be loaded dynamically. If will depend on your application and database design whether it's ok to have lazy loading, or it is faster to include the related modules on the find:
$item=Model_Printqueue::find($id, array('related' => array('item', 'item.biblio')))
Thanks You.., I'll try it
it works.., tQ
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion