PHP Класс Nextras\Orm\Relationships\HasOne

Наследование: extends Nette\Object, implements Nextras\Orm\Relationships\IRelationshipContainer
Показать файл Открыть проект

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

Свойство Тип Описание
$collection Nextras\Orm\Collection\ICollection
$isModified boolean
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$parent Nextras\Orm\Entity\IEntity
$primaryValue mixed
$relationshipMapper Nextras\Orm\Mapper\IRelationshipMapper
$targetRepository Nextras\Orm\Repository\IRepository
$updatingReverseRelationship boolean
$value Nextras\Orm\Entity\IEntity | null | false

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

Метод Описание
__construct ( Nextras\Orm\Entity\IEntity $parent, PropertyMetadata $metadata )
getEntity ( $allowNull = false )
getInjectedValue ( )
getRawValue ( )
hasInjectedValue ( )
isLoaded ( )
isModified ( )
set ( $value, $allowNull = false )
setInjectedValue ( $value )
setParent ( Nextras\Orm\Entity\IEntity $parent )
setRawValue ( $value )

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

Метод Описание
createCollection ( ) : Nextras\Orm\Collection\ICollection Creates relationship collection.
createEntity ( $value, $allowNull )
getCachedCollection ( ) : Nextras\Orm\Collection\ICollection
getPrimaryValue ( )
getTargetRepository ( )
initReverseRelationship ( Nextras\Orm\Entity\IEntity | null $currentEntity ) : mixed
isChanged ( $newValue )
modify ( ) : void Sets relationship (and entity) as modified.
updateRelationship ( Nextras\Orm\Entity\IEntity | null $oldEntity, Nextras\Orm\Entity\IEntity | null $newEntity, boolean $allowNull ) : void Updates relationship on the other side.

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

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

public __construct ( Nextras\Orm\Entity\IEntity $parent, PropertyMetadata $metadata )
$parent Nextras\Orm\Entity\IEntity
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata

createCollection() абстрактный защищенный Метод

Creates relationship collection.
abstract protected createCollection ( ) : Nextras\Orm\Collection\ICollection
Результат Nextras\Orm\Collection\ICollection

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

protected createEntity ( $value, $allowNull )

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

protected getCachedCollection ( ) : Nextras\Orm\Collection\ICollection
Результат Nextras\Orm\Collection\ICollection

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

public getEntity ( $allowNull = false )

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

public getInjectedValue ( )

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

protected getPrimaryValue ( )

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

public getRawValue ( )

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

protected getTargetRepository ( )

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

public hasInjectedValue ( )

initReverseRelationship() абстрактный защищенный Метод

abstract protected initReverseRelationship ( Nextras\Orm\Entity\IEntity | null $currentEntity ) : mixed
$currentEntity Nextras\Orm\Entity\IEntity | null
Результат mixed

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

protected isChanged ( $newValue )

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

public isLoaded ( )

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

public isModified ( )

modify() абстрактный защищенный Метод

Sets relationship (and entity) as modified.
abstract protected modify ( ) : void
Результат void

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

public set ( $value, $allowNull = false )

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

public setInjectedValue ( $value )

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

public setParent ( Nextras\Orm\Entity\IEntity $parent )
$parent Nextras\Orm\Entity\IEntity

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

public setRawValue ( $value )

updateRelationship() абстрактный защищенный Метод

Updates relationship on the other side.
abstract protected updateRelationship ( Nextras\Orm\Entity\IEntity | null $oldEntity, Nextras\Orm\Entity\IEntity | null $newEntity, boolean $allowNull ) : void
$oldEntity Nextras\Orm\Entity\IEntity | null
$newEntity Nextras\Orm\Entity\IEntity | null
$allowNull boolean
Результат void

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

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

protected ICollection,Nextras\Orm\Collection $collection
Результат Nextras\Orm\Collection\ICollection

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

protected bool $isModified
Результат boolean

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

protected PropertyMetadata,Nextras\Orm\Entity\Reflection $metadata
Результат Nextras\Orm\Entity\Reflection\PropertyMetadata

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

protected IEntity,Nextras\Orm\Entity $parent
Результат Nextras\Orm\Entity\IEntity

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

protected mixed $primaryValue
Результат mixed

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

protected IRelationshipMapper,Nextras\Orm\Mapper $relationshipMapper
Результат Nextras\Orm\Mapper\IRelationshipMapper

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

protected IRepository,Nextras\Orm\Repository $targetRepository
Результат Nextras\Orm\Repository\IRepository

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

protected bool $updatingReverseRelationship
Результат boolean

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

protected IEntity,Nextras\Orm\Entity|null|false $value
Результат Nextras\Orm\Entity\IEntity | null | false