프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$added | Nextras\Orm\Entity\IEntity[] | ||
$collection | Nextras\Orm\Collection\ICollection | ||
$isModified | boolean | ||
$metadata | |||
$parent | Nextras\Orm\Entity\IEntity | ||
$relationshipMapper | Nextras\Orm\Mapper\IRelationshipMapper | ||
$removed | Nextras\Orm\Entity\IEntity[] | ||
$targetRepository | Nextras\Orm\Repository\IRepository | ||
$toAdd | Nextras\Orm\Entity\IEntity[] | ||
$toRemove | Nextras\Orm\Entity\IEntity[] | ||
$updatingReverseRelationship | boolean | ||
$wasLoaded | boolean |
메소드 | 설명 | |
---|---|---|
__clone ( ) | ||
__construct ( Nextras\Orm\Entity\IEntity $parent, |
||
add ( $entity ) | ||
count ( ) | ||
countStored ( ) | ||
get ( ) | ||
getIterator ( ) : Nextras\Orm\Collection\ICollection | Nextras\Orm\Entity\IEntity[] | Traversable | ||
getRawValue ( ) : mixed[] | Returns primary values of enitities in relationship. | |
has ( $entity ) | ||
initReverseRelationship ( Nextras\Orm\Entity\IEntity $entity ) | ||
isLoaded ( ) | ||
isModified ( ) | ||
remove ( $entity ) | ||
set ( array $data ) | ||
setInjectedValue ( $value ) | ||
setParent ( Nextras\Orm\Entity\IEntity $parent ) | ||
setRawValue ( $value ) |
메소드 | 설명 | |
---|---|---|
applyDefaultOrder ( Nextras\Orm\Collection\ICollection $collection ) | ||
createCollection ( ) : Nextras\Orm\Collection\ICollection | Returns collection for has many relationship. | |
createEntity ( Nextras\Orm\Entity\IEntity | mixed $entity, boolean $need = true ) : Nextras\Orm\Entity\IEntity | ||
getCachedCollection ( ) : Nextras\Orm\Collection\ICollection | ||
getCollection ( $forceNew = false ) : Nextras\Orm\Collection\ICollection | ||
getRelationshipMapper ( ) | ||
getTargetRepository ( ) : Nextras\Orm\Repository\IRepository | ||
modify ( ) : void | Sets relationship (and entity) as modified. | |
updateRelationshipAdd ( Nextras\Orm\Entity\IEntity $entity ) : void | Updates relationship change for the $entity. | |
updateRelationshipRemove ( Nextras\Orm\Entity\IEntity $entity ) : void | Updates relationship change for the $entity. |
public __construct ( Nextras\Orm\Entity\IEntity $parent, |
||
$parent | Nextras\Orm\Entity\IEntity | |
$metadata |
protected applyDefaultOrder ( Nextras\Orm\Collection\ICollection $collection ) | ||
$collection | Nextras\Orm\Collection\ICollection |
abstract protected createCollection ( ) : Nextras\Orm\Collection\ICollection | ||
리턴 | Nextras\Orm\Collection\ICollection |
protected createEntity ( Nextras\Orm\Entity\IEntity | mixed $entity, boolean $need = true ) : Nextras\Orm\Entity\IEntity | ||
$entity | Nextras\Orm\Entity\IEntity | mixed | |
$need | boolean | |
리턴 | Nextras\Orm\Entity\IEntity |
protected getCachedCollection ( ) : Nextras\Orm\Collection\ICollection | ||
리턴 | Nextras\Orm\Collection\ICollection |
protected getCollection ( $forceNew = false ) : Nextras\Orm\Collection\ICollection | ||
리턴 | Nextras\Orm\Collection\ICollection |
public getIterator ( ) : Nextras\Orm\Collection\ICollection | Nextras\Orm\Entity\IEntity[] | Traversable | ||
리턴 | Nextras\Orm\Collection\ICollection | Nextras\Orm\Entity\IEntity[] | Traversable |
public getRawValue ( ) : mixed[] | ||
리턴 | mixed[] |
protected getTargetRepository ( ) : Nextras\Orm\Repository\IRepository | ||
리턴 | Nextras\Orm\Repository\IRepository |
public initReverseRelationship ( Nextras\Orm\Entity\IEntity $entity ) | ||
$entity | Nextras\Orm\Entity\IEntity |
public setParent ( Nextras\Orm\Entity\IEntity $parent ) | ||
$parent | Nextras\Orm\Entity\IEntity |
abstract protected updateRelationshipAdd ( Nextras\Orm\Entity\IEntity $entity ) : void | ||
$entity | Nextras\Orm\Entity\IEntity | |
리턴 | void |
abstract protected updateRelationshipRemove ( Nextras\Orm\Entity\IEntity $entity ) : void | ||
$entity | Nextras\Orm\Entity\IEntity | |
리턴 | void |
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 IEntity[],Nextras\Orm\Entity $removed | ||
리턴 | Nextras\Orm\Entity\IEntity[] |
protected IRepository,Nextras\Orm\Repository $targetRepository | ||
리턴 | Nextras\Orm\Repository\IRepository |
protected IEntity[],Nextras\Orm\Entity $toRemove | ||
리턴 | Nextras\Orm\Entity\IEntity[] |