public function getRawValue() { $primaryValues = []; foreach ($this->getIterator() as $entity) { if ($entity->isPersisted()) { $primaryValues[] = $entity->getValue('id'); } } return $primaryValues; }