示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVedomstvos()
 {
     return $this->hasMany(Vedomstvo::className(), ['roditel' => 'id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVedomstvo0()
 {
     return $this->hasOne(Vedomstvo::className(), ['id' => 'vedomstvo']);
 }