public function ObjectManager::detach in Plug 7
Detaches an object from the ObjectManager, causing a managed object to become detached. Unflushed changes made to the object if any (including removal of the object), will not be synchronized to the database. Objects which previously referenced the detached object will continue to reference it.
Parameters
object $object The object to detach.:
Return value
void
1 method overrides ObjectManager::detach()
- ObjectManagerDecorator::detach in lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ ObjectManagerDecorator.php - Detaches an object from the ObjectManager, causing a managed object to become detached. Unflushed changes made to the object if any (including removal of the object), will not be synchronized to the database. Objects which previously referenced the…
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ ObjectManager.php, line 101
Class
- ObjectManager
- Contract for a Doctrine persistence layer ObjectManager class to implement.
Namespace
Doctrine\Common\PersistenceCode
public function detach($object);