public function getBy(array $where);
public function getIterator(IEntity $parent, ICollection $collection) { $key = $parent->getRawValue($this->metadata->name); return [$key ? $collection->getBy(['id' => $key]) : NULL]; }