Fixed wrong return types in documentation.
This commit is contained in:
parent
d08c010ae1
commit
cba1c8295c
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -1676,9 +1676,7 @@ class ClassMetadataInfo implements ClassMetadata
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the mapped identifier field of this class.
|
||||
*
|
||||
* @return array|string
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getIdentifier()
|
||||
{
|
||||
|
@ -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?
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user