1
0
mirror of synced 2025-02-22 07:03:13 +03:00

Merge pull request #150 from stof/initialize_object

Added the initializeObject method in the EntityManager
This commit is contained in:
Benjamin Eberlei 2011-10-16 08:04:46 -07:00
commit ba5e73213b

View File

@ -714,6 +714,18 @@ class EntityManager implements ObjectManager
return $this->proxyFactory; return $this->proxyFactory;
} }
/**
* Helper method to initialize a lazy loading proxy or persistent collection.
*
* This method is a no-op for other objects
*
* @param object $obj
*/
public function initializeObject($obj)
{
$this->unitOfWork->initializeObject($obj);
}
/** /**
* Factory method to create EntityManager instances. * Factory method to create EntityManager instances.
* *