/** * @return NoteQuery */ public function getNotes() { return $this->hasMany(Note::className(), ['author_id' => 'id'])->inverseOf('author'); }
/** * @return NoteQuery */ public function getNote() { return $this->hasOne(Note::className(), ['id' => 'note_id'])->inverseOf('labor'); }
/** * @return NoteQuery */ public function getNotes() { return $this->hasMany(Note::className(), ['id' => 'note_id'])->via('labors')->inverseOf('schedule'); }
/** * @return NoteQuery */ public function getNotes() { return $this->hasMany(Note::className(), ['ticket_id' => 'id'])->inverseOf('ticket'); }
/** * @return \yii\db\ActiveQuery */ public function getNote() { return $this->hasOne(Note::className(), ['id' => 'note_id']); }