public function getExisting() { $set = []; foreach ($this as $k => $entity) { $id = $entity->getId(); if ($id) { $set[] = $entity; } } return $set; }