예제 #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
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getInstallakts()
 {
     return $this->hasMany(Installakt::className(), ['id_installer' => 'employee_id'])->from(['installakts' => Installakt::tableName()]);
 }