示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getWagons()
 {
     return $this->hasMany(Wagon::className(), ['wagon_status_id_status' => 'status_id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getWagonWagon()
 {
     return $this->hasOne(Wagon::className(), ['wagon_id' => 'wagon_wagon_id']);
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getWagons()
 {
     return $this->hasMany(Wagon::className(), ['kind_of_wagon_kind_id' => 'kind_id']);
 }