File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -675,28 +675,6 @@ public function refresh($entity)
675
675
$ this ->unitOfWork ->refresh ($ entity );
676
676
}
677
677
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
-
700
678
/**
701
679
* {@inheritDoc}
702
680
*
You can’t perform that action at this time.
0 commit comments