Method |
Description |
|
__call ( string $method, array $params ) : mixed |
Invokes the remote execution of the passed remote method. |
|
__construct ( mixed $className = 'AppserverIo\Appserver\Core\InitialContext' ) |
Initializes the proxy with the class name to proxy. |
|
__create ( string $className ) : AppserverIo\RemoteMethodInvocation\RemoteObjectInterface |
Factory method to create a new instance of the requested proxy implementation. |
|
__getClassName ( ) : string |
The name of the original object. |
|
__getSession ( ) : AppserverIo\RemoteMethodInvocation\SessionInterface |
Returns the session instance. |
|
__invoke ( AppserverIo\RemoteMethodInvocation\RemoteMethodInterface $methodCall, AppserverIo\RemoteMethodInvocation\SessionInterface $session ) : mixed |
Invokes the remote execution of the passed remote method. |
|
__setSession ( AppserverIo\RemoteMethodInvocation\SessionInterface $session ) : AppserverIo\RemoteMethodInvocation\RemoteObjectInterface |
Sets the session with the connection instance. |
|
beginTransaction ( ) : void |
Starts a transaction on the underlying database connection. |
|
clear ( string | null $objectName = null ) : void |
Clears the ObjectManager. All objects that are currently managed
by this ObjectManager become detached. |
|
close ( ) : void |
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 ( ) : void |
Commits a transaction on the underlying database connection. |
|
contains ( object $object ) : boolean |
Checks if the object is part of the current UnitOfWork and therefore managed. |
|
copy ( object $entity, boolean $deep = false ) : object |
Creates a copy of the given entity. Can create a shallow or a deep copy. |
|
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 ( string $dql = '' ) : Query |
Creates a new Query object. |
|
createQueryBuilder ( ) : Doctrine\ORM\QueryBuilder |
Create a QueryBuilder instance |
|
detach ( object $object ) : void |
Detaches an object from the ObjectManager, causing a managed object to
become detached. Unflushed changes made to the object if any
(including removal of the object), will not be synchronized to the database. |
|
find ( string $entityName, mixed $id, integer | null $lockMode = null, integer | null $lockVersion = null ) : object | null |
Finds an Entity by its identifier. |
|
flush ( null | object | array $entity = null ) : void |
Flushes all changes to objects that have been queued up to now to the database. |
|
getCache ( ) : Doctrine\ORM\Cache | null |
Returns the cache API for managing the second level cache regions or NULL if the cache is not enabled. |
|
getClassMetadata ( string $className ) : Doctrine\Common\Persistence\Mapping\ClassMetadata |
Returns the ClassMetadata 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 ( ) : Doctrine\ORM\Query\Expr |
Gets an ExpressionBuilder used for object-oriented construction of query expressions. |
|
getFilters ( ) : Doctrine\ORM\Query\FilterCollection |
Gets the enabled filters. |
|
getHydrator ( integer $hydrationMode ) : Doctrine\ORM\Internal\Hydration\AbstractHydrator |
Gets a hydrator for the given hydration mode. |
|
getMetadataFactory ( ) : Doctrine\Common\Persistence\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 $id ) : 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 $className ) : Doctrine\Common\Persistence\ObjectRepository |
Gets the repository for a class. |
|
getUnitOfWork ( ) : UnitOfWork |
Gets the UnitOfWork used by the EntityManager to coordinate operations. |
|
hasFilters ( ) : boolean |
Checks whether the Entity Manager has filters. |
|
initializeObject ( object $obj ) : void |
Helper method to initialize a lazy loading proxy or persistent collection. |
|
isFiltersStateClean ( ) : boolean |
Checks whether the state of the filter collection is clean. |
|
isOpen ( ) : boolean |
Check if the Entity manager is open or closed. |
|
lock ( object $entity, integer $lockMode, integer | null $lockVersion = null ) : void |
Acquire a lock on the given entity. |
|
merge ( object $object ) : object |
Merges the state of a detached object into the persistence context
of this ObjectManager and returns the managed copy of the object. |
|
newHydrator ( integer $hydrationMode ) : Doctrine\ORM\Internal\Hydration\AbstractHydrator |
Create a new instance for the given hydration mode. |
|
persist ( object $object ) : void |
Tells the ObjectManager to make an instance managed and persistent. |
|
refresh ( object $object ) : void |
Refreshes the persistent state of an object from the database,
overriding any local changes that have not yet been persisted. |
|
remove ( object $object ) : void |
Removes an object instance. |
|
rollback ( ) : void |
Performs a rollback on the underlying database connection. |
|
transactional ( callable $func ) : mixed |
Executes a function in a transaction. |
|