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