public function getNotes() { $notes = []; if ($this->entity->getNotes()) { foreach ($this->entity->getNotes() as $note) { $notes[] = $note; } } return $notes; }