From 1267c36035a991da286b8df144aca0f5908d8a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20=C5=A0kvorc?= Date: Thu, 17 Aug 2017 00:40:36 +0200 Subject: [PATCH] Update Product.php --- src/Entity/Product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}