add __toString method to twig entity