Skip to content

Commit 62df385

Browse files
committed
fix bug with Sonata :
Method Jm\ABBundle\Entity\Template::__toString() must return a string
1 parent bd76902 commit 62df385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Entity/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function getUpdatedAt()
211211

212212
public function __toString()
213213
{
214-
return $this->getName();
214+
return $this->getName() ?: '';
215215
}
216216

217217
/**

0 commit comments

Comments
 (0)