/**
  * @return \yii\db\ActiveQuery
  */
 public function getRentact()
 {
     return $this->hasOne(Rentact::className(), ['id' => 'rentact_id']);
 }
Example #2
0
 public function getRentactActive()
 {
     return $this->hasMany(Rentact::className(), ['system_id' => 'id'])->active();
 }