Method |
Description |
|
__construct ( Doctrine\OXM\Storage\Storage $storage, Configuration $config, Doctrine\Common\EventManager $eventManager = null ) |
Creates a new XmlEntityManager that uses the given Configuration and EventManager implementations. |
|
clear ( string $entityName = null ) |
Clears the EntityManager. All entities that are currently managed
by this EntityManager become detached. |
|
close ( ) |
Closes the EntityManager. All entities that are currently managed
by this EntityManager become detached. The EntityManager may no longer
be used after it is closed. |
|
detach ( object $entity ) |
Detaches an entity from the XmlEntityManager, causing a managed entity to
become detached. Unflushed changes made to the entity if any
(including removal of the entity), will not be synchronized to the filesystem. |
|
find ( string $entityName, mixed $identifier, integer $lockMode = LockMode::NONE, integer $lockVersion = null ) : object |
Finds an Entity by its identifier. |
|
flush ( ) |
Flushes all changes to objects that have been queued up to now to the filesystem. |
|
getClassMetadata ( $className ) : ClassMetadata |
Returns the OXM mapping descriptor for a class. |
|
getConfiguration ( ) : Configuration |
|
|
getEventManager ( ) : Doctrine\Common\EventManager |
|
|
getMarshaller ( ) : Doctrine\OXM\Marshaller\Marshaller\Marshaller |
|
|
getMetadataFactory ( ) : ClassMetadataFactory |
Gets the metadata factory used to gather the metadata of classes. |
|
getProxyFactory ( ) : ProxyFactory |
Gets the proxy factory used by the XmlEntityManager to create xml-entity proxies. |
|
getRepository ( string $entityName ) : Doctrine\Common\Persistence\ObjectRepository |
Gets the repository for a class. |
|
getStorage ( ) : Doctrine\OXM\Storage\XmlStorage |
|
|
getUnitOfWork ( ) : UnitOfWork |
Gets the UnitOfWork used by the EntityManager to coordinate operations. |
|
isOpen ( ) : boolean |
Check if the Entity manager is open or closed. |
|
marshal ( object $object ) : string |
Marshals a mapped object into XML |
|
merge ( object $entity ) : object |
Merges the state of a detached entity into the persistence context
of this XmlEntityManager and returns the managed copy of the entity. |
|
persist ( $entity ) |
Tells the XmlEntityManager to make an instance managed and persistent. |
|
refresh ( object $entity ) |
Refreshes the persistent state of an entity from the filesystem,
overriding any local changes that have not yet been persisted. |
|
remove ( object $entity ) |
Removes an entity instance. |
|
unmarshal ( string $xml ) : object |
Unmarshals XML into mapped objects |
|