Hi, Im trying to get entity manager inside entity or twig extension. i want something like this in twig extension
<?php //Twig/CoreExtension.php foreach($item->getChildren() as $i){ print $i->getTitle(); } ?> <?php //Entity/Section.php public function getChildren() { $EntityManager->children($this); } ?> or like this //Twig/CoreExtension.php <?php foreach($EntityManager->children($item) as $i){ print $i->getTitle(); } ?> but i cant get EntityManager. -- 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