/** * @return \yii\db\ActiveQuery */ public function getAdsComments() { return $this->hasMany(AdComment::className(), ['ad_id' => 'id']); }