Skip to content

Commit 1267c36

Browse files
authored
Update Product.php
1 parent 5d36a1e commit 1267c36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Entity/Product.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function getColors()
254254
*/
255255
public function getBrand()
256256
{
257-
return $this->data['brand'];
257+
return (isset($this->data['brand'])) ? $this->data['brand'] : null;
258258
}
259259

260260
/**
@@ -284,4 +284,4 @@ public function getDiscussion()
284284
return $this->discussion;
285285
}
286286

287-
}
287+
}

0 commit comments

Comments
 (0)