예제 #1
0
파일: Unit.php 프로젝트: gearger/imagenizer
 /** 
  * @return \yii\db\ActiveQuery 
  */
 public function getAmounts()
 {
     return $this->hasMany(Amount::className(), ['unit_id' => 'unit_id']);
 }
예제 #2
0
파일: Main.php 프로젝트: gearger/imagenizer
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAmount()
 {
     return $this->hasOne(Amount::className(), ['amount_id' => 'amount_id']);
 }