示例#1
0
 public function getDraftNoteNew(Draft $d, User $u)
 {
     $note = new DraftNote();
     $note->setDefaults();
     $note->setDraft($d);
     $note->setUser($u);
     return $note;
 }
示例#2
0
文件: Draft.php 项目: jwoods/CE_27
 public function addNote(DraftNote $note)
 {
     $this->notes[] = $note;
     $note->setDraft($this);
 }