コード例 #1
0
ファイル: TrMat.php プロジェクト: vovancho/yii2test
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdInstallakt()
 {
     return $this->hasOne(Installakt::className(), ['installakt_id' => 'id_installakt'])->from(['idInstallakt' => Installakt::tableName()])->inverseOf('trMats');
 }
コード例 #2
0
ファイル: Employee.php プロジェクト: vovancho/yii2test
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getInstallakts()
 {
     return $this->hasMany(Installakt::className(), ['id_installer' => 'employee_id'])->from(['installakts' => Installakt::tableName()]);
 }