PHP 인터페이스 Nextras\Orm\Mapper\IMapper

파일 보기 프로젝트 열기: nextras/orm 0 사용 예제들

공개 메소드들

메소드 설명
clearCollectionCache ( ) Clears cache object for collection.
createCollectionManyHasMany ( Nextras\Orm\Mapper\IMapper $mapper, PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent ) : Nextras\Orm\Collection\ICollection Creates collection with ManyHasMany mapper.
createCollectionManyHasOne ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent ) : Nextras\Orm\Collection\ICollection Creates collection with HasOne mapper.
createCollectionOneHasMany ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent ) : Nextras\Orm\Collection\ICollection Creates collection with OneHasMany mapper.
createCollectionOneHasOne ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent ) : Nextras\Orm\Collection\ICollection Creates collection with OneHasOneDirected mapper.
findAll ( ) : Nextras\Orm\Collection\ICollection Returns all entities.
flush ( ) : void
getCollectionCache ( ) : stdClass Returns cache object for collections.
getRepository ( ) : Nextras\Orm\Repository\IRepository
getStorageReflection ( ) : Nextras\Orm\StorageReflection\IStorageReflection
getTableName ( ) : string
persist ( Nextras\Orm\Entity\IEntity $entity ) : Nextras\Orm\Entity\IEntity
remove ( Nextras\Orm\Entity\IEntity $entity ) : boolean
rollback ( ) : void
setRepository ( Nextras\Orm\Repository\IRepository $repository )
toCollection ( $data ) : Nextras\Orm\Collection\ICollection Transforms value from mapper, which is not a collection.

메소드 상세

clearCollectionCache() 공개 메소드

Clears cache object for collection.

createCollectionManyHasMany() 공개 메소드

Creates collection with ManyHasMany mapper.
public createCollectionManyHasMany ( Nextras\Orm\Mapper\IMapper $mapper, PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent ) : Nextras\Orm\Collection\ICollection
$mapper Nextras\Orm\Mapper\IMapper
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$parent Nextras\Orm\Entity\IEntity
리턴 Nextras\Orm\Collection\ICollection

createCollectionManyHasOne() 공개 메소드

Creates collection with HasOne mapper.
public createCollectionManyHasOne ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent ) : Nextras\Orm\Collection\ICollection
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$parent Nextras\Orm\Entity\IEntity
리턴 Nextras\Orm\Collection\ICollection

createCollectionOneHasMany() 공개 메소드

Creates collection with OneHasMany mapper.
public createCollectionOneHasMany ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent ) : Nextras\Orm\Collection\ICollection
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$parent Nextras\Orm\Entity\IEntity
리턴 Nextras\Orm\Collection\ICollection

createCollectionOneHasOne() 공개 메소드

Creates collection with OneHasOneDirected mapper.
public createCollectionOneHasOne ( PropertyMetadata $metadata, Nextras\Orm\Entity\IEntity $parent ) : Nextras\Orm\Collection\ICollection
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$parent Nextras\Orm\Entity\IEntity
리턴 Nextras\Orm\Collection\ICollection

findAll() 공개 메소드

Returns all entities.
public findAll ( ) : Nextras\Orm\Collection\ICollection
리턴 Nextras\Orm\Collection\ICollection

flush() 공개 메소드

또한 보기: IRepository::flush()
public flush ( ) : void
리턴 void

getCollectionCache() 공개 메소드

Returns cache object for collections.
public getCollectionCache ( ) : stdClass
리턴 stdClass

getRepository() 공개 메소드

public getRepository ( ) : Nextras\Orm\Repository\IRepository
리턴 Nextras\Orm\Repository\IRepository

getStorageReflection() 공개 메소드

public getStorageReflection ( ) : Nextras\Orm\StorageReflection\IStorageReflection
리턴 Nextras\Orm\StorageReflection\IStorageReflection

getTableName() 공개 메소드

public getTableName ( ) : string
리턴 string

persist() 공개 메소드

또한 보기: IRepository::persist()
public persist ( Nextras\Orm\Entity\IEntity $entity ) : Nextras\Orm\Entity\IEntity
$entity Nextras\Orm\Entity\IEntity
리턴 Nextras\Orm\Entity\IEntity

remove() 공개 메소드

또한 보기: IRepository::remove()
public remove ( Nextras\Orm\Entity\IEntity $entity ) : boolean
$entity Nextras\Orm\Entity\IEntity
리턴 boolean

rollback() 공개 메소드

또한 보기: IRepository::roolback()
public rollback ( ) : void
리턴 void

setRepository() 공개 메소드

public setRepository ( Nextras\Orm\Repository\IRepository $repository )
$repository Nextras\Orm\Repository\IRepository

toCollection() 공개 메소드

Transforms value from mapper, which is not a collection.
public toCollection ( $data ) : Nextras\Orm\Collection\ICollection
리턴 Nextras\Orm\Collection\ICollection