'Utilisateur', 'id_producer' => 'Producteur', 'active' => 'Actif', 'bookmark' => 'Favoris', 'credit_active' => 'Crédit', 'product_price_percent' => 'Prix produits : pourcentage' ]; } public function getProducer() { return $this->hasOne(Producer::class, ['id' => 'id_producer']); } public function getUser() { return $this->hasOne(User::class, ['id' => 'id_user']); } /** * Retourne les options de base nécessaires à la fonction de recherche. * * @return array */ public static function defaultOptionsSearch() { return [ 'with' => [], 'join_with' => [], 'orderby' => '', 'attribute_id_producer' => 'user_producer.id_producer' ]; } public function getIdUser(): int { return $this->id_user; } public function setIdUser(int $idUser): self { $this->id_user = $idUser; return $this; } public function getIdProducer(): int { return $this->id_producer; } public function setIdProducer(int $idProducer): self { $this->id_producer = $idProducer; return $this; } public function getActive(): ?bool { return $this->active; } public function setActive(bool $active): self { $this->active = $active; return $this; } public function getBookmark(): ?bool { return $this->bookmark; } public function setBookmark(bool $bookmark): self { $this->bookmark = $bookmark; return $this; } public function getCredit(): float { return $this->credit; } public function setCredit(float $credit): self { $this->credit = $credit; return $this; } public function getCreditActive(): ?bool { return $this->credit_active; } public function setCreditActive(bool $creditActive): self { $this->credit_active = $creditActive; return $this; } public function getProductPricePercent(): float { return $this->product_price_percent; } public function setProductPricePercent(float $productPricePercent): self { $this->product_price_percent = $productPricePercent; return $this; } }