diff --git a/src/Sonata/ProductBundle/Entity/BaseProduct.php b/src/Sonata/ProductBundle/Entity/BaseProduct.php
index <HASH>..<HASH> 100644
--- a/src/Sonata/ProductBundle/Entity/BaseProduct.php
+++ b/src/Sonata/ProductBundle/Entity/BaseProduct.php
@@ -485,7 +485,7 @@ abstract class BaseProduct implements ProductInterface
 
     public function __toString()
     {
-        return $this->getName();
+        return (string) $this->getName();
     }
 
     public function preUpdate()
Added type to avoid issue if name is NULL