Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 ) |
Method | Description | |
---|---|---|
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 | ||
return | 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 | |
return | Nextras\Orm\Entity\IEntity |
protected getCachedCollection ( ) : Nextras\Orm\Collection\ICollection | ||
return | Nextras\Orm\Collection\ICollection |
protected getCollection ( $forceNew = false ) : Nextras\Orm\Collection\ICollection | ||
return | Nextras\Orm\Collection\ICollection |
public getIterator ( ) : Nextras\Orm\Collection\ICollection | Nextras\Orm\Entity\IEntity[] | Traversable | ||
return | Nextras\Orm\Collection\ICollection | Nextras\Orm\Entity\IEntity[] | Traversable |
public getRawValue ( ) : mixed[] | ||
return | mixed[] |
protected getTargetRepository ( ) : Nextras\Orm\Repository\IRepository | ||
return | 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 | |
return | void |
abstract protected updateRelationshipRemove ( Nextras\Orm\Entity\IEntity $entity ) : void | ||
$entity | Nextras\Orm\Entity\IEntity | |
return | void |
protected IEntity[],Nextras\Orm\Entity $added | ||
return | Nextras\Orm\Entity\IEntity[] |
protected ICollection,Nextras\Orm\Collection $collection | ||
return | Nextras\Orm\Collection\ICollection |
protected PropertyMetadata,Nextras\Orm\Entity\Reflection $metadata | ||
return |
protected IEntity,Nextras\Orm\Entity $parent | ||
return | Nextras\Orm\Entity\IEntity |
protected IRelationshipMapper,Nextras\Orm\Mapper $relationshipMapper | ||
return | Nextras\Orm\Mapper\IRelationshipMapper |
protected IEntity[],Nextras\Orm\Entity $removed | ||
return | Nextras\Orm\Entity\IEntity[] |
protected IRepository,Nextras\Orm\Repository $targetRepository | ||
return | Nextras\Orm\Repository\IRepository |
protected IEntity[],Nextras\Orm\Entity $toAdd | ||
return | Nextras\Orm\Entity\IEntity[] |
protected IEntity[],Nextras\Orm\Entity $toRemove | ||
return | Nextras\Orm\Entity\IEntity[] |
protected bool $updatingReverseRelationship | ||
return | boolean |