Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

leftJoin with condition WITH & Object Hydratation problem.

  • Loading branch information...
commit 42d507632fd27a23220c38bb867b611c3caaab8e 1 parent ca01065
@armetiz authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
View
5 lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
@@ -369,10 +369,7 @@ protected function _hydrateRow(array $data, array &$cache, array &$result)
$this->_resultPointers[$dqlAlias] = $reflFieldValue[$index];
}
} else if ( ! $reflField->getValue($parentObject)) {
- $coll = new PersistentCollection($this->_em, $this->_ce[$entityName], new ArrayCollection);
- $coll->setOwner($parentObject, $relation);
- $reflField->setValue($parentObject, $coll);
- $this->_uow->setOriginalEntityProperty($oid, $relationField, $coll);
+ $reflFieldValue = $this->_initRelatedCollection($parentObject, $parentClass, $relationField);
}
} else {
// PATH B: Single-valued association
Please sign in to comment.
Something went wrong with that request. Please try again.