Skip to content

Commit

Permalink
Merge pull request #6587 from PGBI/triggerbeforefind
Browse files Browse the repository at this point in the history
3.0 - Made code "dryer"
  • Loading branch information
lorenzo committed May 19, 2015
2 parents 52c051d + 47e442a commit 2a7e9a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ORM/Association.php
Expand Up @@ -629,9 +629,7 @@ public function deleteAll($conditions)
*/
protected function _dispatchBeforeFind($query)
{
$table = $this->target();
$options = $query->getOptions();
$table->dispatchEvent('Model.beforeFind', [$query, new \ArrayObject($options), false]);
$query->triggerBeforeFind();
}

/**
Expand Down

0 comments on commit 2a7e9a2

Please sign in to comment.