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

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

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)
    {
        $container = $this->execute($collection, $parent);
        return [$container->getEntity($parent->getRawValue($this->metadata->name))];
    }