Nextras\Orm\Mapper\Dbal\RelationshipMapperManyHasMany::getIterator PHP Метод

getIterator() публичный Метод

==== ITERATOR ===================================================================================================
public getIterator ( Nextras\Orm\Entity\IEntity $parent, Nextras\Orm\Collection\ICollection $collection )
$parent Nextras\Orm\Entity\IEntity
$collection Nextras\Orm\Collection\ICollection
    public function getIterator(IEntity $parent, ICollection $collection)
    {
        /** @var IEntityIterator $iterator */
        $iterator = clone $this->execute($collection, $parent);
        $iterator->setDataIndex($parent->getValue('id'));
        return $iterator;
    }