/** * Method used by ModifyProjectForm */ public function getNewNote() { if (!$this->notes->last() || $this->notes->last()->getId()) { return ''; } else { return $this->notes->last()->getNote(); } }