Nextras\Orm\Mapper\IRelationshipMapper::getIterator PHP Method

getIterator() public method

Returns iterator.
public getIterator ( Nextras\Orm\Entity\IEntity $parent, Nextras\Orm\Collection\ICollection $collection ) : Traversable
$parent Nextras\Orm\Entity\IEntity
$collection Nextras\Orm\Collection\ICollection
return Traversable
    public function getIterator(IEntity $parent, ICollection $collection);

Usage Example

Exemplo n.º 1
0
 public function getEntityIterator(IEntity $parent = NULL)
 {
     if ($this->relationshipMapper) {
         return $this->relationshipMapper->getIterator($parent, $this);
     }
     return $this->collectionMapper->getIterator();
 }
All Usage Examples Of Nextras\Orm\Mapper\IRelationshipMapper::getIterator