Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the initializeObject method in ObjectManager #69

Merged
merged 1 commit into from
Oct 16, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion lib/Doctrine/Common/Persistence/ObjectManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function find($className, $id);
* Tells the ObjectManager to make an instance managed and persistent.
*
* The object will be entered into the database as a result of the flush operation.
*
*
* NOTE: The persist operation always considers objects that are not yet known to
* this ObjectManager as NEW. Do not pass detached objects to the persist operation.
*
Expand Down Expand Up @@ -122,4 +122,13 @@ function getClassMetadata($className);
* @return Doctrine\Common\Persistence\Mapping\ClassMetadataFactory
*/
function getMetadataFactory();

/**
* Helper method to initialize a lazy loading proxy or persistent collection.
*
* This method is a no-op for other objects.
*
* @param object $obj
*/
function initializeObject($obj);
}