/** * Method used by ModifyProjectForm */ public function getNewNote() { if (!$this->notes->last() || $this->notes->last()->getId()) { return ''; } else { return $this->notes->last()->getNote(); } }
/** * Add notes * * @param Application\ChiaBundle\Entity\Note $note */ public function addNotes(\Application\ChiaBundle\Entity\Note $note) { $note->setProject($this); $this->notes[] = $note; }
/** * Add notes * * @param Application\ChiaBundle\Entity\Note $notes */ public function addNotes(\Application\ChiaBundle\Entity\Note $notes) { $notes->setCreatedBy($this); $this->notes[] = $notes; }