(Symfony, Twig)
Poniżej przedstawilem obrazowo problem i proszę o wskazówki jak można by to rozwiązać,
kod .
public function indexAction()
{
$em = $this->getDoctrine()->getManager();
$workers= $em->getRepository('AppBundle:Worker')->findAll();
$things= $em->getRepository('AppBundle:Thing')->findAll();
$allocations= $em->getRepository('AppBundle:Allocation')->findAll();
return $this->render('grid/index.html.twig', array(
'workers' => $workers, 'things'=>$things, 'allocations' => $allocations,
));
}