Doctrine\ORM\Persisters\BasicEntityPersister::exists
Checks whether the given managed entity exists in the database.
Signature
Parameters
$entity
— object$extraConditions
— array
Returns
- boolean
- TRUE if the entity exists in the database, FALSE otherwise.