PHP 인터페이스 Nextras\Orm\Relationships\IRelationshipCollection

상속: extends Nextras\Orm\Entity\IProperty, extends IteratorAggregat\IteratorAggregate, extends Countabl\Countable
파일 보기 프로젝트 열기: nextras/orm 0 사용 예제들

공개 메소드들

메소드 설명
add ( Nextras\Orm\Entity\IEntity | scalar $entity ) : Nextras\Orm\Entity\IEntity Adds entity.
countStored ( ) : integer Counts collection entities without fetching them from storage.
doPersist ( ) DO NOT CALL THIS METHOD DIRECTLY.
get ( ) : Nextras\Orm\Collection\ICollection Returns collection of all entity.
getEntitiesForPersistence ( ) : mixed[] Returns IEntity or IRelationshipContainer for persistence.
has ( Nextras\Orm\Entity\IEntity | scalar $entity ) : boolean
isLoaded ( ) : boolean Returns true if colletion was loaded.
isModified ( ) : boolean Returns true if relationship is modified.
remove ( Nextras\Orm\Entity\IEntity | scalar $entity ) : Nextras\Orm\Entity\IEntity Removes entity.
set ( array $data ) : Nextras\Orm\Relationships\IRelationshipCollection Replaces all entities with given ones.
setParent ( Nextras\Orm\Entity\IEntity $parent )

메소드 상세

add() 공개 메소드

Adds entity.
public add ( Nextras\Orm\Entity\IEntity | scalar $entity ) : Nextras\Orm\Entity\IEntity
$entity Nextras\Orm\Entity\IEntity | scalar
리턴 Nextras\Orm\Entity\IEntity

countStored() 공개 메소드

Counts collection entities without fetching them from storage.
public countStored ( ) : integer
리턴 integer

doPersist() 공개 메소드

DO NOT CALL THIS METHOD DIRECTLY.
public doPersist ( )

get() 공개 메소드

Returns collection of all entity.
public get ( ) : Nextras\Orm\Collection\ICollection
리턴 Nextras\Orm\Collection\ICollection

getEntitiesForPersistence() 공개 메소드

Returns IEntity or IRelationshipContainer for persistence.
public getEntitiesForPersistence ( ) : mixed[]
리턴 mixed[]

has() 공개 메소드

public has ( Nextras\Orm\Entity\IEntity | scalar $entity ) : boolean
$entity Nextras\Orm\Entity\IEntity | scalar
리턴 boolean

isLoaded() 공개 메소드

Returns true if colletion was loaded.
public isLoaded ( ) : boolean
리턴 boolean

isModified() 공개 메소드

Returns true if relationship is modified.
public isModified ( ) : boolean
리턴 boolean

remove() 공개 메소드

Removes entity.
public remove ( Nextras\Orm\Entity\IEntity | scalar $entity ) : Nextras\Orm\Entity\IEntity
$entity Nextras\Orm\Entity\IEntity | scalar
리턴 Nextras\Orm\Entity\IEntity

set() 공개 메소드

Replaces all entities with given ones.
public set ( array $data ) : Nextras\Orm\Relationships\IRelationshipCollection
$data array
리턴 Nextras\Orm\Relationships\IRelationshipCollection

setParent() 공개 메소드

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