Skip to content

Commit df397e1

Browse files
Ocramiuslcobucci
authored andcommitted
Removing EntityManager#detach()
1 parent 98d93ad commit df397e1

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

lib/Doctrine/ORM/EntityManager.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -675,28 +675,6 @@ public function refresh($entity)
675675
$this->unitOfWork->refresh($entity);
676676
}
677677

678-
/**
679-
* Detaches an entity from the EntityManager, causing a managed entity to
680-
* become detached. Unflushed changes made to the entity if any
681-
* (including removal of the entity), will not be synchronized to the database.
682-
* Entities which previously referenced the detached entity will continue to
683-
* reference it.
684-
*
685-
* @param object $entity The entity to detach.
686-
*
687-
* @return void
688-
*
689-
* @throws ORMInvalidArgumentException
690-
*/
691-
public function detach($entity)
692-
{
693-
if ( ! is_object($entity)) {
694-
throw ORMInvalidArgumentException::invalidObject('EntityManager#detach()', $entity);
695-
}
696-
697-
$this->unitOfWork->detach($entity);
698-
}
699-
700678
/**
701679
* {@inheritDoc}
702680
*

0 commit comments

Comments
 (0)