Skip to content
Permalink
Browse files

Remove unneeded call of clean() as options already contain markClean

  • Loading branch information...
ceeram committed Jan 26, 2017
1 parent 83f0fea commit 77376d318b6865dd40071ed3984e91348d9e757b
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/ORM/ResultSet.php
@@ -499,7 +499,6 @@ protected function _groupResult($row)
if ($this->_hydrate) {
$options['source'] = $matching['instance']->registryAlias();
$entity = new $matching['entityClass']($results['_matchingData'][$alias], $options);
$entity->clean();
$results['_matchingData'][$alias] = $entity;
}
}
@@ -549,7 +548,6 @@ protected function _groupResult($row)
if ($this->_hydrate && $results[$alias] !== null && $assoc['canBeJoined']) {
$entity = new $assoc['entityClass']($results[$alias], $options);
$entity->clean();
$results[$alias] = $entity;
}

0 comments on commit 77376d3

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.