コード例 #1
0
ファイル: Employee.php プロジェクト: vovancho/yii2test
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRemoveakts()
 {
     return $this->hasMany(Removeakt::className(), ['id_remover' => 'employee_id'])->from(['removeakts' => Removeakt::tableName()]);
 }
コード例 #2
0
ファイル: TrRmMat.php プロジェクト: vovancho/yii2test
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdRemoveakt()
 {
     return $this->hasOne(Removeakt::className(), ['removeakt_id' => 'id_removeakt'])->from(['idRemoveakt' => Removeakt::tableName()]);
 }