PHP 클래스 Nextras\Orm\Relationships\HasOne

상속: extends Nette\Object, implements Nextras\Orm\Relationships\IRelationshipContainer
파일 보기 프로젝트 열기: nextras/orm

보호된 프로퍼티들

프로퍼티 타입 설명
$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