Merge pull request #150 from stof/initialize_object
Added the initializeObject method in the EntityManager
This commit is contained in:
commit
ba5e73213b
@ -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.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user