/** * @return \yii\db\ActiveQuery */ public function getIdInstallakt() { return $this->hasOne(Installakt::className(), ['installakt_id' => 'id_installakt'])->from(['idInstallakt' => Installakt::tableName()])->inverseOf('trMats'); }
/** * @return \yii\db\ActiveQuery */ public function getInstallakts() { return $this->hasMany(Installakt::className(), ['id_installer' => 'employee_id'])->from(['installakts' => Installakt::tableName()]); }