Doctrine\ORM\EntityManager::contains
Determines whether an entity instance is managed in this EntityManager.
Signature
Parameters
$entity
— object
Returns
- boolean
- TRUE if this EntityManager currently manages the given entity, FALSE otherwise.
$entity
—
object