PHP Класс Doctrine\ODM\OrientDB\Mapper\Hydration\Hydrator

Автор: Alessandro Nadalin ([email protected])
Автор: David Funaro ([email protected])
Автор: Tamás Millián ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$binding
$cache
$castedProperties
$caster
$clusterMap
$enableMismatchesTolerance
$inflector
$metadataFactory
$proxyFactory
$uow

Открытые методы

Метод Описание
__construct ( UnitOfWork $uow )
enableMismatchesTolerance ( boolean $tolerate ) Sets whether the Hydrator should tolerate mismatches during hydration.
hydrate ( stdClass $orientObject, Doctrine\ODM\OrientDB\Proxy\Proxy $proxy = null ) : Result Takes an Doctrine\OrientDB JSON object and finds the class responsible to map that object.
hydrateCollection ( array $collection ) : Doctrine\ODM\OrientDB\Collections\ArrayCollection Hydrates an array of documents.
hydrateRid ( Rid $rid )
load ( array $rids, string $fetchPlan = null ) : mixed
toleratesMismatches ( ) : boolean Checks whether the Hydrator throws exceptions or not when encountering an mismatch error during hydration.

Защищенные методы

Метод Описание
castProperty ( Property $annotation, mixed $propertyValue ) : mixed Casts a value according to how it was annotated.
createDocument ( string $class, stdClass $orientObject ) : object Either tries to get the proxy
fill ( object $document, stdClass $object ) : object Given an object and an Orient-object, it fills the former with the latter.
getCache ( ) : Doctrine\Common\Cache\Cache Returns the caching layer of the mapper.
getCastedPropertyCacheKey ( $type, $value )
getCaster ( ) : Caster Returns the caster instance.
getMetadataFactory ( ) : ClassMetadataFactory Returns the MetadataFactor.
getProxyFactory ( ) : ProxyFactory Returns the ProxyFactory to which the hydrator is attached.
getUnitOfWork ( )
hydrateValue ( $value, Property $annotation ) : mixed | null Hydrates the value
verifyCastingSupport ( Caster $caster, string $method, string $annotationType ) Verifies if the given $caster supports casting with $method.

Описание методов

__construct() публичный Метод

public __construct ( UnitOfWork $uow )
$uow Doctrine\ODM\OrientDB\UnitOfWork

castProperty() защищенный Метод

Casts a value according to how it was annotated.
protected castProperty ( Property $annotation, mixed $propertyValue ) : mixed
$annotation Doctrine\ODM\OrientDB\Mapper\Annotations\Property
$propertyValue mixed
Результат mixed

createDocument() защищенный Метод

Either tries to get the proxy
protected createDocument ( string $class, stdClass $orientObject ) : object
$class string
$orientObject stdClass
Результат object of type $class

enableMismatchesTolerance() публичный Метод

Sets whether the Hydrator should tolerate mismatches during hydration.
public enableMismatchesTolerance ( boolean $tolerate )
$tolerate boolean

fill() защищенный Метод

Given an object and an Orient-object, it fills the former with the latter.
protected fill ( object $document, stdClass $object ) : object
$document object
$object stdClass
Результат object

getCache() защищенный Метод

Returns the caching layer of the mapper.
protected getCache ( ) : Doctrine\Common\Cache\Cache
Результат Doctrine\Common\Cache\Cache

getCastedPropertyCacheKey() защищенный Метод

protected getCastedPropertyCacheKey ( $type, $value )

getCaster() защищенный Метод

Returns the caster instance.
protected getCaster ( ) : Caster
Результат Doctrine\ODM\OrientDB\Caster\Caster

getMetadataFactory() защищенный Метод

Returns the MetadataFactor.
protected getMetadataFactory ( ) : ClassMetadataFactory
Результат Doctrine\ODM\OrientDB\Mapper\ClassMetadataFactory

getProxyFactory() защищенный Метод

Returns the ProxyFactory to which the hydrator is attached.
protected getProxyFactory ( ) : ProxyFactory
Результат Doctrine\ODM\OrientDB\Proxy\ProxyFactory

getUnitOfWork() защищенный Метод

protected getUnitOfWork ( )

hydrate() публичный Метод

If the class is found, a new POPO is instantiated and the properties inside the JSON object are filled accordingly.
public hydrate ( stdClass $orientObject, Doctrine\ODM\OrientDB\Proxy\Proxy $proxy = null ) : Result
$orientObject stdClass
$proxy Doctrine\ODM\OrientDB\Proxy\Proxy
Результат Result

hydrateCollection() публичный Метод

Hydrates an array of documents.
public hydrateCollection ( array $collection ) : Doctrine\ODM\OrientDB\Collections\ArrayCollection
$collection array
Результат Doctrine\ODM\OrientDB\Collections\ArrayCollection

hydrateRid() публичный Метод

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

hydrateValue() защищенный Метод

Hydrates the value
protected hydrateValue ( $value, Property $annotation ) : mixed | null
$value
$annotation Doctrine\ODM\OrientDB\Mapper\Annotations\Property
Результат mixed | null

load() публичный Метод

public load ( array $rids, string $fetchPlan = null ) : mixed
$rids array
$fetchPlan string
Результат mixed

toleratesMismatches() публичный Метод

Checks whether the Hydrator throws exceptions or not when encountering an mismatch error during hydration.
public toleratesMismatches ( ) : boolean
Результат boolean

verifyCastingSupport() защищенный Метод

If not, an exception is raised.
protected verifyCastingSupport ( Caster $caster, string $method, string $annotationType )
$caster Doctrine\ODM\OrientDB\Caster\Caster
$method string
$annotationType string

Описание свойств

$binding защищенное свойство

protected $binding

$cache защищенное свойство

protected $cache

$castedProperties защищенное свойство

protected $castedProperties

$caster защищенное свойство

protected $caster

$clusterMap защищенное свойство

protected $clusterMap

$enableMismatchesTolerance защищенное свойство

protected $enableMismatchesTolerance

$inflector защищенное свойство

protected $inflector

$metadataFactory защищенное свойство

protected $metadataFactory

$proxyFactory защищенное свойство

protected $proxyFactory

$uow защищенное свойство

protected $uow