diff --git a/src/Entity/Product.php b/src/Entity/Product.php index f584999..3728810 100644 --- a/src/Entity/Product.php +++ b/src/Entity/Product.php @@ -254,7 +254,7 @@ public function getColors() */ public function getBrand() { - return $this->data['brand']; + return (isset($this->data['brand'])) ? $this->data['brand'] : null; } /** @@ -284,4 +284,4 @@ public function getDiscussion() return $this->discussion; } -} \ No newline at end of file +}