Skip to content

Commit

Permalink
Update Controller.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark authored Sep 4, 2024
1 parent c68f53f commit f715afc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/Controller/Controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ public function paginate(
'conditions' => 'where',
'contain' => 'contain',
];
foreacH ($blacklist as $key => $asKey) {
foreach ($blacklist as $key => $asKey) {
if (!empty($settings[$key])) {
if ($object instanceof RepositoryInterface) {
$object = $object->find();
}
$object->$asKey($settings[$key]);
}
}
Expand Down

0 comments on commit f715afc

Please sign in to comment.