PHP Interface Nextras\Orm\Mapper\IMapper

Afficher le fichier Open project: nextras/orm Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

clearCollectionCache() public méthode

Clears cache object for collection.

createCollectionManyHasMany() public méthode

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
Résultat Nextras\Orm\Collection\ICollection

createCollectionManyHasOne() public méthode

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
Résultat Nextras\Orm\Collection\ICollection

createCollectionOneHasMany() public méthode

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
Résultat Nextras\Orm\Collection\ICollection

createCollectionOneHasOne() public méthode

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
Résultat Nextras\Orm\Collection\ICollection

findAll() public méthode

Returns all entities.
public findAll ( ) : Nextras\Orm\Collection\ICollection
Résultat Nextras\Orm\Collection\ICollection

flush() public méthode

See also: IRepository::flush()
public flush ( ) : void
Résultat void

getCollectionCache() public méthode

Returns cache object for collections.
public getCollectionCache ( ) : stdClass
Résultat stdClass

getRepository() public méthode

public getRepository ( ) : Nextras\Orm\Repository\IRepository
Résultat Nextras\Orm\Repository\IRepository

getStorageReflection() public méthode

public getStorageReflection ( ) : Nextras\Orm\StorageReflection\IStorageReflection
Résultat Nextras\Orm\StorageReflection\IStorageReflection

getTableName() public méthode

public getTableName ( ) : string
Résultat string

persist() public méthode

See also: IRepository::persist()
public persist ( Nextras\Orm\Entity\IEntity $entity ) : Nextras\Orm\Entity\IEntity
$entity Nextras\Orm\Entity\IEntity
Résultat Nextras\Orm\Entity\IEntity

remove() public méthode

See also: IRepository::remove()
public remove ( Nextras\Orm\Entity\IEntity $entity ) : boolean
$entity Nextras\Orm\Entity\IEntity
Résultat boolean

rollback() public méthode

See also: IRepository::roolback()
public rollback ( ) : void
Résultat void

setRepository() public méthode

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

toCollection() public méthode

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