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