loadDefinition(ProductPriceDefinition::class); } public function filterByProduct(Product $product): self { $this->andWhere(['id_product' => $product->id]); return $this; } public function filterByUser(User $user): self { $this->andWhere(['id_user' => $user->id]); return $this; } public function filterByUserGroup(UserGroup $userGroup): self { $this->andWhere(['id_user_group' => $userGroup->id]); return $this; } public function filterByPointSale(PointSale $pointSale): self { $this->andWhere(['id_point_sale' => $pointSale->id]); return $this; } public function filterByFromQuantity(float $fromQuantity): self { $this->andWhere(['from_quantity' => $fromQuantity]); return $this; } }