コード例 #1
0
ファイル: Zahlung.php プロジェクト: emersinlioglu/hausangebot
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDatenblatt()
 {
     return $this->hasOne(Datenblatt::className(), ['id' => 'datenblatt_id']);
 }
コード例 #2
0
ファイル: Haus.php プロジェクト: emersinlioglu/hausangebot
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDatenblatts()
 {
     return $this->hasMany(Datenblatt::className(), ['haus_id' => 'id']);
 }