diff --git a/lib/Doctrine/Hydrator.php b/lib/Doctrine/Hydrator.php index bf34b2578..15107ff5c 100644 --- a/lib/Doctrine/Hydrator.php +++ b/lib/Doctrine/Hydrator.php @@ -207,9 +207,9 @@ class Doctrine_Hydrator extends Doctrine_Hydrator_Abstract } else { $index = $identifierMap[$path][$id[$parent]][$id[$dqlAlias]]; } + // register collection for later snapshots + $driver->registerCollection($prev[$parent][$relationAlias]); } - // register collection for later snapshots - $driver->registerCollection($prev[$parent][$relationAlias]); } else { // 1-1 relation $oneToOne = true; diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index 2f573831e..f8cedd195 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -87,7 +87,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite private static $_index = 1; /** - * Boolean flag that indicated whether automatic accessor overriding is enabled. + * Boolean flag that indicates whether automatic accessor overriding is enabled. * * @var boolean */