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