Chaining multiple relations

Status
This content is read-only, or is not open for further replies.

Sysnative

Guest
offline
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:

Code:

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...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom