Skip to content

Commit

Permalink
fix: drop a few more deprecated method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez authored May 5, 2018
1 parent 4f273f9 commit 74251de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Listener/ViewListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function beforePaginate(Event $event)
$this->associations = $this->_associations(array_keys($related));
}

if (!$event->getSubject()->query->contain()) {
if (!$event->getSubject()->query->getContain()) {
$event->getSubject()->query->contain($this->_getRelatedModels(['manyToOne', 'oneToOne']));
}
}
Expand Down Expand Up @@ -211,7 +211,7 @@ protected function _getRelatedModels($associationTypes = [])
foreach ($associationTypes as $assocType) {
$associations = array_merge(
$associations,
$this->_table()->associations()->type($assocType)
$this->_table()->associations()->getByType($assocType)
);
}
}
Expand Down

0 comments on commit 74251de

Please sign in to comment.