Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getUpdates()
 {
     return $this->hasMany(PatternUpdate::className(), ['project_id' => 'id']);
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPatternUpdate()
 {
     return $this->hasOne(PatternUpdate::className(), ['id' => 'pattern_update_id']);
 }
Пример #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPatternUpdates()
 {
     return $this->hasMany(PatternUpdate::className(), ['id' => 'pattern_update_id'])->viaTable('pattern_has_update', ['received_date_id' => 'id']);
 }