S

Chaining multiple relations

  • Thread starter Thread starter Sysnative
  • Start date Start date
S

Sysnative

Guest

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...
 
Similar threads Most view View more
Back
Top Bottom