I have got really strange problem. join in twig doesnt work with mappings :(
I have entity with mapping like [code] /** * Ware categories for article * * @ORM\ManyToMany(targetEntity="Vido\CoreBundle\Entity \WareCategory") * @ORM\JoinTable(name="article_ware_categories", * joinColumns={@ORM\JoinColumn(name="article_id", referencedColumnName="id")}, * inverseJoinColumns={@ORM\JoinColumn(name="ware_category_id", referencedColumnName="id")} * ) */ protected $wareCategories;[/code] when I try to use [code]{{ wareCategories | join(",") }}[/code] I got error <b>Fatal error</b>: Method Vido\CoreBundle\Entity\Video::__toString() must not throw an exception in <b>Z:\Apache\htdocs\projects\vido.com.ua \vido_admin\app\cache\dev\classes.php</b> on line <b>6955</b><br /> However code like [code]{% for ware in wareCategories%} {{ ware }} {% endfor %}[/code] works fine :( -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en