/** * @return array \common\models\Advert */ public function getAdverts() { return $this->hasMany(Advert::className(), ['user_id' => 'id']); }