public function getSells() { return $this->hasMany(Sell::className(), ['id' => 'sell_id'])->viaTable('detail', ['product_id' => 'id']); }
public function getSells() { return $this->hasMany(Sell::className(), ['user_id' => 'id'])->orderBy(['id' => SORT_DESC]); }