PHP 클래스 Nextras\Orm\Relationships\HasMany

상속: extends Nette\Object, implements Nextras\Orm\Relationships\IRelationshipCollection
파일 보기 프로젝트 열기: nextras/orm

보호된 프로퍼티들

프로퍼티 타입 설명
$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