From 51cd553de8507ac92dd62036d99b16a130c7c3e4 Mon Sep 17 00:00:00 2001 From: Adel Date: Wed, 11 Jul 2012 22:44:07 +0000 Subject: [PATCH] Fix phpdocs --- .../ORM/Internal/Hydration/ObjectHydrator.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php b/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php index 51effe63c..5813734cd 100644 --- a/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php +++ b/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php @@ -160,10 +160,10 @@ class ObjectHydrator extends AbstractHydrator /** * Initializes a related collection. * - * @param object $entity The entity to which the collection belongs. + * @param object $entity The entity to which the collection belongs. * @param ClassMetadata $class - * @param string $name The name of the field on the entity that holds the collection. - * @param string $parentDqlAlias Alias of the parent fetch joining this collection. + * @param string $fieldName The name of the field on the entity that holds the collection. + * @param string $parentDqlAlias Alias of the parent fetch joining this collection. */ private function _initRelatedCollection($entity, $class, $fieldName, $parentDqlAlias) { @@ -207,7 +207,7 @@ class ObjectHydrator extends AbstractHydrator /** * Gets an entity instance. * - * @param array $data The instance data. + * @param array $data The instance data. * @param string $dqlAlias The DQL alias of the entity's class. * @return object The entity. */ @@ -245,6 +245,11 @@ class ObjectHydrator extends AbstractHydrator return $this->_uow->createEntity($className, $data, $this->_hints); } + /** + * @param string $className + * @param array $data + * @return mixed + */ private function _getEntityFromIdentityMap($className, array $data) { // TODO: Abstract this code and UnitOfWork::createEntity() equivalent? @@ -302,8 +307,8 @@ class ObjectHydrator extends AbstractHydrator * level of the hydrated result. A typical example are the objects of the type * specified by the FROM clause in a DQL query. * - * @param array $data The data of the row to process. - * @param array $cache The cache to use. + * @param array $row The data of the row to process. + * @param array $cache The cache to use. * @param array $result The result array to fill. */ protected function hydrateRowData(array $row, array &$cache, array &$result)