We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d36a1e commit 1267c36Copy full SHA for 1267c36
1 file changed
src/Entity/Product.php
@@ -254,7 +254,7 @@ public function getColors()
254
*/
255
public function getBrand()
256
{
257
- return $this->data['brand'];
+ return (isset($this->data['brand'])) ? $this->data['brand'] : null;
258
}
259
260
/**
@@ -284,4 +284,4 @@ public function getDiscussion()
284
return $this->discussion;
285
286
287
-}
+}
0 commit comments