프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$collection | Nextras\Orm\Collection\ICollection | ||
$isModified | boolean | ||
$metadata | |||
$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, |
||
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. |
public __construct ( Nextras\Orm\Entity\IEntity $parent, |
||
$parent | Nextras\Orm\Entity\IEntity | |
$metadata |
abstract protected createCollection ( ) : Nextras\Orm\Collection\ICollection | ||
리턴 | Nextras\Orm\Collection\ICollection |
protected getCachedCollection ( ) : Nextras\Orm\Collection\ICollection | ||
리턴 | Nextras\Orm\Collection\ICollection |
abstract protected initReverseRelationship ( Nextras\Orm\Entity\IEntity | null $currentEntity ) : mixed | ||
$currentEntity | Nextras\Orm\Entity\IEntity | null | |
리턴 | mixed |
public setParent ( Nextras\Orm\Entity\IEntity $parent ) | ||
$parent | Nextras\Orm\Entity\IEntity |
protected ICollection,Nextras\Orm\Collection $collection | ||
리턴 | Nextras\Orm\Collection\ICollection |
protected PropertyMetadata,Nextras\Orm\Entity\Reflection $metadata | ||
리턴 |
protected IRelationshipMapper,Nextras\Orm\Mapper $relationshipMapper | ||
리턴 | Nextras\Orm\Mapper\IRelationshipMapper |
protected IRepository,Nextras\Orm\Repository $targetRepository | ||
리턴 | Nextras\Orm\Repository\IRepository |
protected IEntity,Nextras\Orm\Entity|null|false $value | ||
리턴 | Nextras\Orm\Entity\IEntity | null | false |