From 2d748ca23ce986013c316bc3a368b7adf9ee5b31 Mon Sep 17 00:00:00 2001 From: Julien Rouvier Date: Wed, 8 Nov 2023 11:41:07 +0100 Subject: [PATCH] Add attribute notation to SearchableTrait --- src/Model/Product/SearchableTrait.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Model/Product/SearchableTrait.php b/src/Model/Product/SearchableTrait.php index e85296c6..9284251f 100644 --- a/src/Model/Product/SearchableTrait.php +++ b/src/Model/Product/SearchableTrait.php @@ -20,16 +20,19 @@ trait SearchableTrait /** * @ORM\Column(name="searchable", type="boolean", nullable=false, options={"default"=false}) */ + #[ORM\Column(name: 'searchable', type: 'boolean', nullable: false, options: ['default' => false])] protected bool $searchable = false; /** * @ORM\Column(name="filterable", type="boolean", nullable=false, options={"default"=false}) */ + #[ORM\Column(name: 'filterable', type: 'boolean', nullable: false, options: ['default' => false])] protected bool $filterable = false; /** * @ORM\Column(name="search_weight", type="smallint", nullable=false, options={"default"=1, "unsigned"=true}) */ + #[ORM\Column(name: 'search_weight', type: 'smallint', nullable: false, options: ['default' => 1, 'unsigned' => true])] protected int $searchWeight = 1; public function isSearchable(): bool