My assumption is no, as I couldn't find this referenced anywhere after searching, but maybe someone knows for sure (or the correct syntax).
Can a XF Finder return the Relation of a Relation? Aka:
Where the relations are: Entity1 -> Entity2 -> User. (Aka User is a relation of Entity2, and Entity2 is a relation of Entity 1)
I can query them separately if that's the better option, but I'd like to simplify the call if possible.
Thanks for any help!
Can a XF Finder return the Relation of a Relation? Aka:
Code:
$finder = $this->finder('Sysnative\Addon:Entity1');
$finder
->setDefaultOrder('id', 'ASC')
->with('Entity2, true)
->with('User');
return $finder;
Where the relations are: Entity1 -> Entity2 -> User. (Aka User is a relation of Entity2, and Entity2 is a relation of Entity 1)
I can query them separately if that's the better option, but I'd like to simplify the call if possible.
Thanks for any help!