コード例 #1
0
ファイル: Boleto.php プロジェクト: Stenyo/yii2-boletos
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBoletoRetornos()
 {
     return $this->hasMany(BoletoRetorno::className(), ['boleto_id' => 'id']);
 }
コード例 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBoletoRetorno()
 {
     return $this->hasOne(BoletoRetorno::className(), ['id' => 'boleto_retorno_id']);
 }