Свойство | 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 |
Méthode | 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 ) |
Méthode | 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 | ||
Résultat | 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 | |
Résultat | Nextras\Orm\Entity\IEntity |
protected getCachedCollection ( ) : Nextras\Orm\Collection\ICollection | ||
Résultat | Nextras\Orm\Collection\ICollection |
protected getCollection ( $forceNew = false ) : Nextras\Orm\Collection\ICollection | ||
Résultat | Nextras\Orm\Collection\ICollection |
public getIterator ( ) : Nextras\Orm\Collection\ICollection | Nextras\Orm\Entity\IEntity[] | Traversable | ||
Résultat | Nextras\Orm\Collection\ICollection | Nextras\Orm\Entity\IEntity[] | Traversable |
public getRawValue ( ) : mixed[] | ||
Résultat | mixed[] |
protected getTargetRepository ( ) : Nextras\Orm\Repository\IRepository | ||
Résultat | 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 | |
Résultat | void |
abstract protected updateRelationshipRemove ( Nextras\Orm\Entity\IEntity $entity ) : void | ||
$entity | Nextras\Orm\Entity\IEntity | |
Résultat | void |
protected IEntity[],Nextras\Orm\Entity $added | ||
Résultat | Nextras\Orm\Entity\IEntity[] |
protected ICollection,Nextras\Orm\Collection $collection | ||
Résultat | Nextras\Orm\Collection\ICollection |
protected PropertyMetadata,Nextras\Orm\Entity\Reflection $metadata | ||
Résultat |
protected IEntity,Nextras\Orm\Entity $parent | ||
Résultat | Nextras\Orm\Entity\IEntity |
protected IRelationshipMapper,Nextras\Orm\Mapper $relationshipMapper | ||
Résultat | Nextras\Orm\Mapper\IRelationshipMapper |
protected IEntity[],Nextras\Orm\Entity $removed | ||
Résultat | Nextras\Orm\Entity\IEntity[] |
protected IRepository,Nextras\Orm\Repository $targetRepository | ||
Résultat | Nextras\Orm\Repository\IRepository |
protected IEntity[],Nextras\Orm\Entity $toAdd | ||
Résultat | Nextras\Orm\Entity\IEntity[] |
protected IEntity[],Nextras\Orm\Entity $toRemove | ||
Résultat | Nextras\Orm\Entity\IEntity[] |
protected bool $updatingReverseRelationship | ||
Résultat | boolean |