PHP Class Nextras\Orm\Mapper\Memory\RelationshipMapperManyHasMany

Inheritance: extends Nette\Object, implements Nextras\Orm\Mapper\IRelationshipMapperManyHasMany
ファイルを表示 Open project: nextras/orm

Protected Properties

Property Type Description
$mapper ArrayMapper
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata

Public Methods

Method Description
__construct ( PropertyMetadata $metadata, ArrayMapper $mapper )
add ( Nextras\Orm\Entity\IEntity $parent, array $add )
getIterator ( Nextras\Orm\Entity\IEntity $parent, Nextras\Orm\Collection\ICollection $collection )
getIteratorCount ( Nextras\Orm\Entity\IEntity $parent, Nextras\Orm\Collection\ICollection $collection )
remove ( Nextras\Orm\Entity\IEntity $parent, array $remove )

Method Details

__construct() public method

public __construct ( PropertyMetadata $metadata, ArrayMapper $mapper )
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$mapper ArrayMapper

add() public method

public add ( Nextras\Orm\Entity\IEntity $parent, array $add )
$parent Nextras\Orm\Entity\IEntity
$add array

getIterator() public method

public getIterator ( Nextras\Orm\Entity\IEntity $parent, Nextras\Orm\Collection\ICollection $collection )
$parent Nextras\Orm\Entity\IEntity
$collection Nextras\Orm\Collection\ICollection

getIteratorCount() public method

public getIteratorCount ( Nextras\Orm\Entity\IEntity $parent, Nextras\Orm\Collection\ICollection $collection )
$parent Nextras\Orm\Entity\IEntity
$collection Nextras\Orm\Collection\ICollection

remove() public method

public remove ( Nextras\Orm\Entity\IEntity $parent, array $remove )
$parent Nextras\Orm\Entity\IEntity
$remove array

Property Details

$mapper protected_oe property

protected ArrayMapper,Nextras\Orm\Mapper\Memory $mapper
return ArrayMapper

$metadata protected_oe property

protected PropertyMetadata,Nextras\Orm\Entity\Reflection $metadata
return Nextras\Orm\Entity\Reflection\PropertyMetadata