Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix doctrine ODM locator.

  • Loading branch information...
commit 671d2d93036f80edc79e8cfad24ae39eba6c2aa0 1 parent 2f80606
@stephpy authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 Filter/DataHydrator/Locator/DoctrineODM.php
View
4 Filter/DataHydrator/Locator/DoctrineODM.php
@@ -56,7 +56,6 @@ public function locate($model, array $components)
$oids = array();
foreach ($components as $component) {
- // @todo why getIdentifier is an array ?
$oids[] = current($component->getIdentifier());
}
@@ -81,8 +80,7 @@ protected function buildHashFromResult($metadata, $model, $result, $field)
$identifiers[$field] = (string) $metadata->reflFields[$field]->getValue($result);
if (count($identifiers) == 1) {
- // @todo why having to set as array.
- $identifiers = array((string) current($identifiers));
+ $identifiers = (string) current($identifiers);
}
return sprintf('%s#%s', $model, serialize($identifiers));
Please sign in to comment.
Something went wrong with that request. Please try again.