diff --git a/lib/Doctrine/ORM/AbstractQuery.php b/lib/Doctrine/ORM/AbstractQuery.php index 3ba0dee263d..31c222a7fe5 100644 --- a/lib/Doctrine/ORM/AbstractQuery.php +++ b/lib/Doctrine/ORM/AbstractQuery.php @@ -98,7 +98,7 @@ abstract class AbstractQuery /** * The hydration mode. * - * @var integer + * @var string|int */ protected $_hydrationMode = self::HYDRATE_OBJECT; @@ -680,8 +680,8 @@ public function setFetchMode($class, $assocName, $fetchMode) /** * Defines the processing mode to be used during hydration / result set transformation. * - * @param integer $hydrationMode Doctrine processing mode to be used during hydration process. - * One of the Query::HYDRATE_* constants. + * @param string|int $hydrationMode Doctrine processing mode to be used during hydration process. + * One of the Query::HYDRATE_* constants. * * @return static This query instance. */ @@ -695,7 +695,7 @@ public function setHydrationMode($hydrationMode) /** * Gets the hydration mode currently used by the query. * - * @return integer + * @return string|int */ public function getHydrationMode() { @@ -707,7 +707,7 @@ public function getHydrationMode() * * Alias for execute(null, $hydrationMode = HYDRATE_OBJECT). * - * @param int $hydrationMode + * @param string|int $hydrationMode * * @return mixed */ @@ -743,7 +743,7 @@ public function getScalarResult() /** * Get exactly one result or null. * - * @param int $hydrationMode + * @param string|int $hydrationMode * * @return mixed * @@ -781,7 +781,7 @@ public function getOneOrNullResult($hydrationMode = null) * If the result is not unique, a NonUniqueResultException is thrown. * If there is no result, a NoResultException is thrown. * - * @param integer $hydrationMode + * @param string|int $hydrationMode * * @return mixed * @@ -875,7 +875,7 @@ public function getHints() * iterate over the result. * * @param ArrayCollection|array|null $parameters The query parameters. - * @param integer|null $hydrationMode The hydration mode to use. + * @param string|int|null $hydrationMode The hydration mode to use. * * @return \Doctrine\ORM\Internal\Hydration\IterableResult */ @@ -899,7 +899,7 @@ public function iterate($parameters = null, $hydrationMode = null) * Executes the query. * * @param ArrayCollection|array|null $parameters Query parameters. - * @param integer|null $hydrationMode Processing mode to be used during the hydration process. + * @param string|int|null $hydrationMode Processing mode to be used during the hydration process. * * @return mixed */ @@ -916,7 +916,7 @@ public function execute($parameters = null, $hydrationMode = null) * Execute query ignoring second level cache. * * @param ArrayCollection|array|null $parameters - * @param integer|null $hydrationMode + * @param string|int|null $hydrationMode * * @return mixed */ @@ -974,7 +974,7 @@ private function executeIgnoreQueryCache($parameters = null, $hydrationMode = nu * Load from second level cache or executes the query and put into cache. * * @param ArrayCollection|array|null $parameters - * @param integer|null $hydrationMode + * @param string|int|null $hydrationMode * * @return mixed */ diff --git a/lib/Doctrine/ORM/EntityManagerInterface.php b/lib/Doctrine/ORM/EntityManagerInterface.php index c61e6973c28..a423432a162 100644 --- a/lib/Doctrine/ORM/EntityManagerInterface.php +++ b/lib/Doctrine/ORM/EntityManagerInterface.php @@ -249,7 +249,7 @@ public function getUnitOfWork(); * * @deprecated * - * @param int $hydrationMode + * @param string|int $hydrationMode * * @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator */ @@ -258,7 +258,7 @@ public function getHydrator($hydrationMode); /** * Create a new instance for the given hydration mode. * - * @param int $hydrationMode + * @param string|int $hydrationMode * * @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator * diff --git a/lib/Doctrine/ORM/Query.php b/lib/Doctrine/ORM/Query.php index 041ebeebb9f..525aa7a5081 100644 --- a/lib/Doctrine/ORM/Query.php +++ b/lib/Doctrine/ORM/Query.php @@ -656,7 +656,7 @@ public function getMaxResults() * iterated over the result. * * @param ArrayCollection|array|null $parameters The query parameters. - * @param integer $hydrationMode The hydration mode to use. + * @param string|int $hydrationMode The hydration mode to use. * * @return \Doctrine\ORM\Internal\Hydration\IterableResult */