PHP Класс Nextras\Orm\Relationships\HasMany

Наследование: extends Nette\Object, implements Nextras\Orm\Relationships\IRelationshipCollection
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$added Nextras\Orm\Entity\IEntity[]
$collection Nextras\Orm\Collection\ICollection
$isModified boolean
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$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, PropertyMetadata $metadata )
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.

Описание методов

__clone() публичный метод

public __clone ( )

__construct() публичный метод

public __construct ( Nextras\Orm\Entity\IEntity $parent, PropertyMetadata $metadata )
$parent Nextras\Orm\Entity\IEntity
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata

add() публичный метод

public add ( $entity )

applyDefaultOrder() защищенный метод

protected applyDefaultOrder ( Nextras\Orm\Collection\ICollection $collection )
$collection Nextras\Orm\Collection\ICollection

count() публичный метод

public count ( )

countStored() публичный метод

public countStored ( )

createCollection() абстрактный защищенный метод

Returns collection for has many relationship.
abstract protected createCollection ( ) : Nextras\Orm\Collection\ICollection
Результат Nextras\Orm\Collection\ICollection

createEntity() защищенный метод

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

get() публичный метод

public get ( )

getCachedCollection() защищенный метод

protected getCachedCollection ( ) : Nextras\Orm\Collection\ICollection
Результат Nextras\Orm\Collection\ICollection

getCollection() защищенный метод

protected getCollection ( $forceNew = false ) : Nextras\Orm\Collection\ICollection
Результат Nextras\Orm\Collection\ICollection

getIterator() публичный метод

public getIterator ( ) : Nextras\Orm\Collection\ICollection | Nextras\Orm\Entity\IEntity[] | Traversable
Результат Nextras\Orm\Collection\ICollection | Nextras\Orm\Entity\IEntity[] | Traversable

getRawValue() публичный метод

Returns primary values of enitities in relationship.
public getRawValue ( ) : mixed[]
Результат mixed[]

getRelationshipMapper() защищенный метод

protected getRelationshipMapper ( )

getTargetRepository() защищенный метод

protected getTargetRepository ( ) : Nextras\Orm\Repository\IRepository
Результат Nextras\Orm\Repository\IRepository

has() публичный метод

public has ( $entity )

initReverseRelationship() публичный метод

public initReverseRelationship ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity

isLoaded() публичный метод

public isLoaded ( )

isModified() публичный метод

public isModified ( )

modify() абстрактный защищенный метод

Sets relationship (and entity) as modified.
abstract protected modify ( ) : void
Результат void

remove() публичный метод

public remove ( $entity )

set() публичный метод

public set ( array $data )
$data array

setInjectedValue() публичный метод

public setInjectedValue ( $value )

setParent() публичный метод

public setParent ( Nextras\Orm\Entity\IEntity $parent )
$parent Nextras\Orm\Entity\IEntity

setRawValue() публичный метод

public setRawValue ( $value )

updateRelationshipAdd() абстрактный защищенный метод

Updates relationship change for the $entity.
abstract protected updateRelationshipAdd ( Nextras\Orm\Entity\IEntity $entity ) : void
$entity Nextras\Orm\Entity\IEntity
Результат void

updateRelationshipRemove() абстрактный защищенный метод

Updates relationship change for the $entity.
abstract protected updateRelationshipRemove ( Nextras\Orm\Entity\IEntity $entity ) : void
$entity Nextras\Orm\Entity\IEntity
Результат void

Описание свойств

$added защищенное свойство

protected IEntity[],Nextras\Orm\Entity $added
Результат Nextras\Orm\Entity\IEntity[]

$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

$relationshipMapper защищенное свойство

protected IRelationshipMapper,Nextras\Orm\Mapper $relationshipMapper
Результат Nextras\Orm\Mapper\IRelationshipMapper

$removed защищенное свойство

protected IEntity[],Nextras\Orm\Entity $removed
Результат Nextras\Orm\Entity\IEntity[]

$targetRepository защищенное свойство

protected IRepository,Nextras\Orm\Repository $targetRepository
Результат Nextras\Orm\Repository\IRepository

$toAdd защищенное свойство

protected IEntity[],Nextras\Orm\Entity $toAdd
Результат Nextras\Orm\Entity\IEntity[]

$toRemove защищенное свойство

protected IEntity[],Nextras\Orm\Entity $toRemove
Результат Nextras\Orm\Entity\IEntity[]

$updatingReverseRelationship защищенное свойство

protected bool $updatingReverseRelationship
Результат boolean

$wasLoaded защищенное свойство

protected bool $wasLoaded
Результат boolean