Skip to content

Commit

Permalink
Fix using default relations
Browse files Browse the repository at this point in the history
  • Loading branch information
berarma committed Apr 16, 2023
1 parent e7929a2 commit f257000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listener/ViewListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function beforePaginate(EventInterface $event): void
}

if (!$event->getSubject()->query->getContain()) {
$event->getSubject()->query->contain($this->_getRelatedModels(['manyToOne', 'oneToOne']));
$event->getSubject()->query->contain($this->_getRelatedModels(['belongsTo', 'hasOne']));
}
}

Expand Down

0 comments on commit f257000

Please sign in to comment.