1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Fixed wrong return types in documentation.

This commit is contained in:
Benjamin Morel 2013-02-12 11:49:44 +00:00
parent d08c010ae1
commit cba1c8295c
4 changed files with 9 additions and 11 deletions

View File

@ -376,12 +376,12 @@ class EntityManager implements ObjectManager
/**
* Finds an Entity by its identifier.
*
* @param string $entityName
* @param mixed $id
* @param integer $lockMode
* @param integer $lockVersion
* @param string $entityName
* @param mixed $id
* @param integer $lockMode
* @param integer|null $lockVersion
*
* @return object
* @return object|null The entity instance or NULL if the entity can not be found.
*
* @throws OptimisticLockException
* @throws ORMInvalidArgumentException

View File

@ -147,7 +147,7 @@ class EntityRepository implements ObjectRepository, Selectable
* @param int $lockMode The lock mode.
* @param int|null $lockVersion The lock version.
*
* @return object The entity.
* @return object|null The entity instance or NULL if the entity can not be found.
*/
public function find($id, $lockMode = LockMode::NONE, $lockVersion = null)
{
@ -187,7 +187,7 @@ class EntityRepository implements ObjectRepository, Selectable
* @param array $criteria
* @param array|null $orderBy
*
* @return object
* @return object|null The entity instance or NULL if the entity can not be found.
*/
public function findOneBy(array $criteria, array $orderBy = null)
{

View File

@ -1676,9 +1676,7 @@ class ClassMetadataInfo implements ClassMetadata
}
/**
* Gets the mapped identifier field of this class.
*
* @return array|string
* {@inheritDoc}
*/
public function getIdentifier()
{

View File

@ -714,7 +714,7 @@ class BasicEntityPersister
* @param int|null $limit Limit number of results.
* @param array|null $orderBy Criteria to order by.
*
* @return object The loaded and managed entity instance or NULL if the entity can not be found.
* @return object|null The loaded and managed entity instance or NULL if the entity can not be found.
*
* @todo Check identity map? loadById method? Try to guess whether $criteria is the id?
*/