예제 #1
0
파일: Report.php 프로젝트: ap-404/rate
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getExchange()
 {
     return $this->hasMany(Exchange::className(), ['create_time' => 'date', 'location_id' => 'location_id']);
 }
예제 #2
0
파일: Users.php 프로젝트: ap-404/rate
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getExchanges()
 {
     return $this->hasMany(Exchange::className(), ['user_id' => 'id']);
 }