Merge pull request #578 from BenMorel/docfix
Fix for wrong return types in documentation.
This commit is contained in:
commit
39374b7235
@ -376,12 +376,12 @@ class EntityManager implements ObjectManager
|
|||||||
/**
|
/**
|
||||||
* Finds an Entity by its identifier.
|
* Finds an Entity by its identifier.
|
||||||
*
|
*
|
||||||
* @param string $entityName
|
* @param string $entityName
|
||||||
* @param mixed $id
|
* @param mixed $id
|
||||||
* @param integer $lockMode
|
* @param integer $lockMode
|
||||||
* @param integer $lockVersion
|
* @param integer|null $lockVersion
|
||||||
*
|
*
|
||||||
* @return object
|
* @return object|null The entity instance or NULL if the entity can not be found.
|
||||||
*
|
*
|
||||||
* @throws OptimisticLockException
|
* @throws OptimisticLockException
|
||||||
* @throws ORMInvalidArgumentException
|
* @throws ORMInvalidArgumentException
|
||||||
|
@ -147,7 +147,7 @@ class EntityRepository implements ObjectRepository, Selectable
|
|||||||
* @param int $lockMode The lock mode.
|
* @param int $lockMode The lock mode.
|
||||||
* @param int|null $lockVersion The lock version.
|
* @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)
|
public function find($id, $lockMode = LockMode::NONE, $lockVersion = null)
|
||||||
{
|
{
|
||||||
@ -187,7 +187,7 @@ class EntityRepository implements ObjectRepository, Selectable
|
|||||||
* @param array $criteria
|
* @param array $criteria
|
||||||
* @param array|null $orderBy
|
* @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)
|
public function findOneBy(array $criteria, array $orderBy = null)
|
||||||
{
|
{
|
||||||
|
@ -1676,9 +1676,7 @@ class ClassMetadataInfo implements ClassMetadata
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the mapped identifier field of this class.
|
* {@inheritDoc}
|
||||||
*
|
|
||||||
* @return array|string
|
|
||||||
*/
|
*/
|
||||||
public function getIdentifier()
|
public function getIdentifier()
|
||||||
{
|
{
|
||||||
|
@ -714,7 +714,7 @@ class BasicEntityPersister
|
|||||||
* @param int|null $limit Limit number of results.
|
* @param int|null $limit Limit number of results.
|
||||||
* @param array|null $orderBy Criteria to order by.
|
* @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?
|
* @todo Check identity map? loadById method? Try to guess whether $criteria is the id?
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user