PHP 클래스 Doctrine\ODM\OrientDB\Manager

상속: implements Doctrine\Common\Persistence\ObjectManager
파일 보기 프로젝트 열기: doctrine/orientdb-odm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$binding
$cache
$configuration
$metadataFactory
$proxyFactory
$uow

공개 메소드들

메소드 설명
__construct ( Doctrine\OrientDB\Binding\BindingInterface $binding, Configuration $configuration ) Instatiates a new Mapper, injecting the $mapper that will be used to hydrate record retrieved through the $binding.
clear ( stdClass $object = null )
contains ( stdClass $object )
detach ( stdClass $object )
execute ( Query $query, $fetchPlan = null ) : array | Mixed Executes a $query against OrientDB.
find ( string $rid, string $fetchPlan = '*:0' ) : Doctrine\ODM\OrientDB\Proxy\Proxy | object Queries for an object with the given $rid.
findRecords ( array $rids, boolean $lazy = false, mixed $fetchPlan = '*:0' ) : Doctrine\ODM\OrientDB\Collections\ArrayCollection Queries for an array of objects with the given $rids.
flush ( )
getBinding ( ) : Doctrine\OrientDB\Binding\BindingInterface Returns the binding instance used to communicate OrientDB.
getCache ( ) : Doctrine\Common\Cache\Cache Returns the Cache.
getClassMetadata ( string $class ) : Doctrine\Common\Persistence\Mapping\ClassMetadata Gets the $class Metadata.
getConfiguration ( ) : Configuration Returns the Configuration of the Manager
getInflector ( ) : Doctrine\Common\Inflector\Inflector Returns the Inflector associated with this manager.
getMetadataFactory ( ) : Doctrine\Common\Persistence\Mapping\ClassMetadataFactory Returns the Metadata factory associated with this manager.
getProxyFactory ( ) : ProxyFactory Returns the ProxyFactory associated with this manager.
getReference ( $rid ) : Doctrine\ODM\OrientDB\Proxy\Proxy Returns a reference to an entity. It will be lazily and transparently loaded if anything other than the identifier is touched.
getRepository ( string $className ) : Repository Returns the Repository class associated with the $class.
getUnitOfWork ( )
initializeObject ( object $obj ) Helper method to initialize a lazy loading proxy or persistent collection.
merge ( stdClass $object )
persist ( stdClass $object )
refresh ( stdClass $object )
remove ( stdClass $object )

메소드 상세

__construct() 공개 메소드

Instatiates a new Mapper, injecting the $mapper that will be used to hydrate record retrieved through the $binding.
public __construct ( Doctrine\OrientDB\Binding\BindingInterface $binding, Configuration $configuration )
$binding Doctrine\OrientDB\Binding\BindingInterface
$configuration Configuration

clear() 공개 메소드

public clear ( stdClass $object = null )
$object stdClass

contains() 공개 메소드

public contains ( stdClass $object )
$object stdClass

detach() 공개 메소드

public detach ( stdClass $object )
$object stdClass

execute() 공개 메소드

This method should be used to execute queries which should not return a result (UPDATE, INSERT) or to retrieve multiple objects: to retrieve a single record look at ->find*() methods.
public execute ( Query $query, $fetchPlan = null ) : array | Mixed
$query Doctrine\OrientDB\Query\Query
리턴 array | Mixed

find() 공개 메소드

If $lazy loading is used, all of this won't be executed unless the returned Proxy object is called via __invoke, e.g.: $lazyLoadedRecord = $manager->find('1:1', true); $record = $lazyLoadedRecord();
public find ( string $rid, string $fetchPlan = '*:0' ) : Doctrine\ODM\OrientDB\Proxy\Proxy | object
$rid string
$fetchPlan string
리턴 Doctrine\ODM\OrientDB\Proxy\Proxy | object

findRecords() 공개 메소드

In case of laziness a collection of proxies is returned which contain either uninitialized proxies for entities the UnitOfWork didn't know about yet, or already existing ones.
public findRecords ( array $rids, boolean $lazy = false, mixed $fetchPlan = '*:0' ) : Doctrine\ODM\OrientDB\Collections\ArrayCollection
$rids array
$lazy boolean
$fetchPlan mixed
리턴 Doctrine\ODM\OrientDB\Collections\ArrayCollection

flush() 공개 메소드

public flush ( )

getBinding() 공개 메소드

Returns the binding instance used to communicate OrientDB.
public getBinding ( ) : Doctrine\OrientDB\Binding\BindingInterface
리턴 Doctrine\OrientDB\Binding\BindingInterface

getCache() 공개 메소드

Returns the Cache.
public getCache ( ) : Doctrine\Common\Cache\Cache
리턴 Doctrine\Common\Cache\Cache

getClassMetadata() 공개 메소드

Gets the $class Metadata.
public getClassMetadata ( string $class ) : Doctrine\Common\Persistence\Mapping\ClassMetadata
$class string
리턴 Doctrine\Common\Persistence\Mapping\ClassMetadata

getConfiguration() 공개 메소드

Returns the Configuration of the Manager
public getConfiguration ( ) : Configuration
리턴 Configuration

getInflector() 공개 메소드

Returns the Inflector associated with this manager.
public getInflector ( ) : Doctrine\Common\Inflector\Inflector
리턴 Doctrine\Common\Inflector\Inflector

getMetadataFactory() 공개 메소드

Returns the Metadata factory associated with this manager.
public getMetadataFactory ( ) : Doctrine\Common\Persistence\Mapping\ClassMetadataFactory
리턴 Doctrine\Common\Persistence\Mapping\ClassMetadataFactory

getProxyFactory() 공개 메소드

Returns the ProxyFactory associated with this manager.
public getProxyFactory ( ) : ProxyFactory
리턴 Doctrine\ODM\OrientDB\Proxy\ProxyFactory

getReference() 공개 메소드

Returns a reference to an entity. It will be lazily and transparently loaded if anything other than the identifier is touched.
public getReference ( $rid ) : Doctrine\ODM\OrientDB\Proxy\Proxy
$rid
리턴 Doctrine\ODM\OrientDB\Proxy\Proxy

getRepository() 공개 메소드

Returns the Repository class associated with the $class.
public getRepository ( string $className ) : Repository
$className string
리턴 Repository

getUnitOfWork() 공개 메소드

public getUnitOfWork ( )

initializeObject() 공개 메소드

This method is a no-op for other objects.
public initializeObject ( object $obj )
$obj object

merge() 공개 메소드

public merge ( stdClass $object )
$object stdClass

persist() 공개 메소드

public persist ( stdClass $object )
$object stdClass

refresh() 공개 메소드

public refresh ( stdClass $object )
$object stdClass

remove() 공개 메소드

public remove ( stdClass $object )
$object stdClass

프로퍼티 상세

$binding 보호되어 있는 프로퍼티

protected $binding

$cache 보호되어 있는 프로퍼티

protected $cache

$configuration 보호되어 있는 프로퍼티

protected $configuration

$metadataFactory 보호되어 있는 프로퍼티

protected $metadataFactory

$proxyFactory 보호되어 있는 프로퍼티

protected $proxyFactory

$uow 보호되어 있는 프로퍼티

protected $uow