PHP Class Doctrine\ODM\OrientDB\UnitOfWork

Inheritance: implements Doctrine\Common\PropertyChangedListener
Mostrar archivo Open project: doctrine/orientdb-odm Class Usage Examples

Public Methods

Method Description
__construct ( Manager $manager )
attach ( Doctrine\ODM\OrientDB\Proxy\Proxy $proxy )
execute ( Query $query, $fetchPlan = null )
getCollectionFor ( array $rids, boolean $lazy = true, string $fetchPlan = null ) : Doctrine\ODM\OrientDB\Collections\ArrayCollection | null
getHydrator ( ) : Hydrator Lazily instantiates and returns the Hydrator
getManager ( ) : Manager Returns the manager the UnitOfWork is attached to
getProxyFor ( Rid $rid, boolean $lazy = true, null $fetchPlan = null ) : Doctrine\ODM\OrientDB\Proxy\Proxy
hasProxyFor ( Rid $rid )

Protected Methods

Method Description
getInflector ( )
getRid ( Doctrine\ODM\OrientDB\Proxy\Proxy $proxy ) : string Gets the rid of the proxy.
load ( Rid $rid, mixed $fetchPlan = null ) : object | null Executes a query against OrientDB to find the specified RID and finalizes the hydration result.

Method Details

__construct() public method

public __construct ( Manager $manager )
$manager Manager

attach() public method

public attach ( Doctrine\ODM\OrientDB\Proxy\Proxy $proxy )
$proxy Doctrine\ODM\OrientDB\Proxy\Proxy

execute() public method

public execute ( Query $query, $fetchPlan = null )
$query Doctrine\OrientDB\Query\Query

getCollectionFor() public method

public getCollectionFor ( array $rids, boolean $lazy = true, string $fetchPlan = null ) : Doctrine\ODM\OrientDB\Collections\ArrayCollection | null
$rids array
$lazy boolean
$fetchPlan string
return Doctrine\ODM\OrientDB\Collections\ArrayCollection | null

getHydrator() public method

Lazily instantiates and returns the Hydrator
public getHydrator ( ) : Hydrator
return Doctrine\ODM\OrientDB\Mapper\Hydration\Hydrator

getInflector() protected method

protected getInflector ( )

getManager() public method

Returns the manager the UnitOfWork is attached to
public getManager ( ) : Manager
return Manager

getProxyFor() public method

public getProxyFor ( Rid $rid, boolean $lazy = true, null $fetchPlan = null ) : Doctrine\ODM\OrientDB\Proxy\Proxy
$rid Doctrine\ODM\OrientDB\Types\Rid
$lazy boolean
$fetchPlan null
return Doctrine\ODM\OrientDB\Proxy\Proxy

getRid() protected method

Gets the rid of the proxy.
protected getRid ( Doctrine\ODM\OrientDB\Proxy\Proxy $proxy ) : string
$proxy Doctrine\ODM\OrientDB\Proxy\Proxy
return string

hasProxyFor() public method

public hasProxyFor ( Rid $rid )
$rid Doctrine\ODM\OrientDB\Types\Rid

load() protected method

Optionally the query can be executed using the specified fetch plan.
protected load ( Rid $rid, mixed $fetchPlan = null ) : object | null
$rid Doctrine\ODM\OrientDB\Types\Rid
$fetchPlan mixed
return object | null