예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProviderComments()
 {
     return $this->hasMany(ProviderComments::className(), ['reviewer' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getComments()
 {
     return $this->hasMany(ProviderComments::className(), ['provider_id' => 'id']);
 }