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