PHP Класс Doctrine\ODM\OrientDB\Manager

Наследование: implements Doctrine\Common\Persistence\ObjectManager
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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