Method |
Description |
|
beginTransaction ( ) |
Starts a transaction on the underlying database connection. |
|
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. |
|
commit ( ) |
Commits a transaction on the underlying database connection. |
|
contains ( object $entity ) : boolean |
Determines whether an entity instance is managed in this EntityManager. |
|
copy ( object $entity, $deep = false ) : object |
Creates a copy of the given entity. Can create a shallow or a deep copy. |
|
create ( mixed $conn, Doctrine\ORM\Configuration $config, Doctrine\Common\EventManager $eventManager = null ) : EntityManager |
Factory method to create EntityManager instances. |
|
createNamedNativeQuery ( string $name ) : Doctrine\ORM\NativeQuery |
Creates a NativeQuery from a named native query. |
|
createNamedQuery ( string $name ) : Doctrine\ORM\Query |
Creates a Query from a named query. |
|
createNativeQuery ( string $sql, Doctrine\ORM\Query\ResultSetMapping $rsm ) : Doctrine\ORM\NativeQuery |
Creates a native SQL query. |
|
createQuery ( $dql = "" ) : Doctrine\ORM\Query |
Creates a new Query object. |
|
createQueryBuilder ( ) : Doctrine\ORM\QueryBuilder |
Create a QueryBuilder instance |
|
detach ( object $entity ) |
Detaches an entity from the EntityManager, 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 database. |
|
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 database. |
|
getClassMetadata ( $className ) : Doctrine\ORM\Mapping\ClassMetadata |
Returns the ORM metadata descriptor for a class. |
|
getConfiguration ( ) : Doctrine\ORM\Configuration |
Gets the Configuration used by the EntityManager. |
|
getConnection ( ) : Doctrine\DBAL\Connection |
Gets the database connection object used by the EntityManager. |
|
getEventManager ( ) : Doctrine\Common\EventManager |
Gets the EventManager used by the EntityManager. |
|
getExpressionBuilder ( ) : ExpressionBuilder |
Gets an ExpressionBuilder used for object-oriented construction of query expressions. |
|
getHydrator ( integer $hydrationMode ) : Doctrine\ORM\Internal\Hydration\AbstractHydrator |
Gets a hydrator for the given hydration mode. |
|
getMetadataFactory ( ) : Doctrine\ORM\Mapping\ClassMetadataFactory |
Gets the metadata factory used to gather the metadata of classes. |
|
getPartialReference ( string $entityName, mixed $identifier ) : object |
Gets a partial reference to the entity identified by the given type and identifier
without actually loading it, if the entity is not yet loaded. |
|
getProxyFactory ( ) : Doctrine\ORM\Proxy\ProxyFactory |
Gets the proxy factory used by the EntityManager to create entity proxies. |
|
getReference ( string $entityName, mixed $identifier ) : object |
Gets a reference to the entity identified by the given type and identifier
without actually loading it, if the entity is not yet loaded. |
|
getRepository ( string $entityName ) : Doctrine\ORM\EntityRepository |
Gets the repository for an entity class. |
|
getUnitOfWork ( ) : Doctrine\ORM\UnitOfWork |
Gets the UnitOfWork used by the EntityManager to coordinate operations. |
|
lock ( object $entity, integer $lockMode, integer $lockVersion = null ) |
Acquire a lock on the given entity. |
|
merge ( object $entity ) : object |
Merges the state of a detached entity into the persistence context
of this EntityManager and returns the managed copy of the entity. |
|
newHydrator ( integer $hydrationMode ) : Doctrine\ORM\Internal\Hydration\AbstractHydrator |
Create a new instance for the given hydration mode. |
|
persist ( $entity ) |
Tells the EntityManager to make an instance managed and persistent. |
|
refresh ( object $entity ) |
Refreshes the persistent state of an entity from the database,
overriding any local changes that have not yet been persisted. |
|
remove ( object $entity ) |
Removes an entity instance. |
|
rollback ( ) |
Performs a rollback on the underlying database connection. |
|
transactional ( Closur\Closure $func ) |
Executes a function in a transaction. |
|