Skip to content
Browse files

Merge pull request #795 from doctrine/hydrator-factory-cmd

Do not pass obsolete $cmd argument to PersistentCollection ctor
  • Loading branch information...
2 parents 9d16a70 + 63e18a1 commit 60a4f3f2823434fdf1cfdead5f24786b08c8a49f @jmikola jmikola committed Feb 5, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php
View
2 lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php
@@ -295,7 +295,7 @@ private function generateHydratorClass(ClassMetadata $class, $hydratorClassName,
/** @Many */
\$mongoData = isset(\$data['%1\$s']) ? \$data['%1\$s'] : null;
- \$return = new \Doctrine\ODM\MongoDB\PersistentCollection(new \Doctrine\Common\Collections\ArrayCollection(), \$this->dm, \$this->unitOfWork, '$');
+ \$return = new \Doctrine\ODM\MongoDB\PersistentCollection(new \Doctrine\Common\Collections\ArrayCollection(), \$this->dm, \$this->unitOfWork);
\$return->setHints(\$hints);
\$return->setOwner(\$document, \$this->class->fieldMappings['%2\$s']);
\$return->setInitialized(false);

0 comments on commit 60a4f3f

Please sign in to comment.
Something went wrong with that request. Please try again.