コード例 #1
0
ファイル: Recoverysendakt.php プロジェクト: vovancho/yii2test
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRecoveryrecieveakts()
 {
     return $this->hasMany(Recoveryrecieveakt::className(), ['id_recoverysendakt' => 'recoverysendakt_id'])->from(['recoveryrecieveakts' => Recoveryrecieveakt::tableName()])->inverseOf('idRecoverysendakt');
 }
コード例 #2
0
ファイル: RraDocfiles.php プロジェクト: vovancho/yii2test
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdRecoveryrecieveakt()
 {
     return $this->hasOne(Recoveryrecieveakt::className(), ['recoveryrecieveakt_id' => 'id_recoveryrecieveakt'])->from(['idRecoveryrecieveakt' => Recoveryrecieveakt::tableName()]);
 }