Exemplo n.º 1
0
 public function getDraftNoteNew(Draft $d, User $u)
 {
     $note = new DraftNote();
     $note->setDefaults();
     $note->setDraft($d);
     $note->setUser($u);
     return $note;
 }
Exemplo n.º 2
0
 public function addNote(DraftNote $note)
 {
     $this->notes[] = $note;
     $note->setDraft($this);
 }