PHP Class Nextras\Orm\Mapper\Dbal\RelationshipMapperManyHasMany

Inheritance: extends Nette\Object, implements Nextras\Orm\Mapper\IRelationshipMapperManyHasMany
Show file Open project: nextras/orm

Protected Properties

Property Type Description
$cacheCounts int[]
$cacheEntityIterator Nextras\Orm\Collection\IEntityIterator[]
$connection Nextras\Dbal\Connection
$joinTable string
$mapperOne DbalMapper
$mapperTwo DbalMapper
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$primaryKeyFrom string
$primaryKeyTo string
$targetRepository Nextras\Orm\Repository\IRepository

Public Methods

Method Description
__construct ( Nextras\Dbal\Connection $connection, DbalMapper $mapperOne, DbalMapper $mapperTwo, PropertyMetadata $metadata )
add ( Nextras\Orm\Entity\IEntity $parent, array $add ) ==== OTHERS =====================================================================================================
getIterator ( Nextras\Orm\Entity\IEntity $parent, Nextras\Orm\Collection\ICollection $collection ) ==== ITERATOR ===================================================================================================
getIteratorCount ( Nextras\Orm\Entity\IEntity $parent, Nextras\Orm\Collection\ICollection $collection ) ==== ITERATOR COUNT =============================================================================================
remove ( Nextras\Orm\Entity\IEntity $parent, array $remove )

Protected Methods

Method Description
buildList ( Nextras\Orm\Entity\IEntity $parent, array $entries )
calculateCacheKey ( Nextras\Dbal\QueryBuilder\QueryBuilder $builder, array $values )
execute ( DbalCollection $collection, Nextras\Orm\Entity\IEntity $parent )
executeCounts ( DbalCollection $collection, Nextras\Orm\Entity\IEntity $parent )

Private Methods

Method Description
fetchByTwoPassStrategy ( Nextras\Dbal\QueryBuilder\QueryBuilder $builder, array $values )
fetchCounts ( Nextras\Dbal\QueryBuilder\QueryBuilder $builder, array $values )

Method Details

__construct() public method

public __construct ( Nextras\Dbal\Connection $connection, DbalMapper $mapperOne, DbalMapper $mapperTwo, PropertyMetadata $metadata )
$connection Nextras\Dbal\Connection
$mapperOne DbalMapper
$mapperTwo DbalMapper
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata

add() public method

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

buildList() protected method

protected buildList ( Nextras\Orm\Entity\IEntity $parent, array $entries )
$parent Nextras\Orm\Entity\IEntity
$entries array

calculateCacheKey() protected method

protected calculateCacheKey ( Nextras\Dbal\QueryBuilder\QueryBuilder $builder, array $values )
$builder Nextras\Dbal\QueryBuilder\QueryBuilder
$values array

execute() protected method

protected execute ( DbalCollection $collection, Nextras\Orm\Entity\IEntity $parent )
$collection DbalCollection
$parent Nextras\Orm\Entity\IEntity

executeCounts() protected method

protected executeCounts ( DbalCollection $collection, Nextras\Orm\Entity\IEntity $parent )
$collection DbalCollection
$parent Nextras\Orm\Entity\IEntity

getIterator() public method

==== ITERATOR ===================================================================================================
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

==== ITERATOR COUNT =============================================================================================
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

$cacheCounts protected property

protected int[] $cacheCounts
return int[]

$cacheEntityIterator protected property

protected IEntityIterator[],Nextras\Orm\Collection $cacheEntityIterator
return Nextras\Orm\Collection\IEntityIterator[]

$connection protected property

protected Connection,Nextras\Dbal $connection
return Nextras\Dbal\Connection

$joinTable protected property

protected string $joinTable
return string

$mapperOne protected property

protected DbalMapper,Nextras\Orm\Mapper\Dbal $mapperOne
return DbalMapper

$mapperTwo protected property

protected DbalMapper,Nextras\Orm\Mapper\Dbal $mapperTwo
return DbalMapper

$metadata protected property

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

$primaryKeyFrom protected property

protected string $primaryKeyFrom
return string

$primaryKeyTo protected property

protected string $primaryKeyTo
return string

$targetRepository protected property

protected IRepository,Nextras\Orm\Repository $targetRepository
return Nextras\Orm\Repository\IRepository