public function getIterator(IEntity $parent, ICollection $collection) { $container = $this->execute($collection, $parent); return [$container->getEntity($parent->getRawValue($this->metadata->name))]; }