[eluser]j0nxiest[/eluser]
After reading through my last post a few times i realized it was quite a mess. So now i'm trying to be a bit more clear with my questions.
1. When i am fetching records and have has_many relation, can i include all children for a record somehow? e.g. $parent->include_many_related('child')->get();
2. If i get all parents $parents->get(); //100 parents,
Can i get every parents children without a for loop? e.g. $parents->all->child->get();
or do i always have to go like this: foreach($parents as $parent){$parent->child->get()};
(i know i could go like $children->include_related(parent)->get() but if i have to go the other way?)
3. When i am querying for objects, can i check if in the middle of a query if the object has a related item? e.g. $parent->where_has_related('child')->get();