帮我
public function indexAction()
{
$tpos = $this->getDoctrine()->getRepository('TestBundle:Materials')->findAll();
foreach($tposs as $tpos) {
$posts['id'];
}
echo $midcount;
你将会怎样?
注意:未定义索引:id
帮我
public function indexAction()
{
$tpos = $this->getDoctrine()->getRepository('TestBundle:Materials')->findAll();
foreach($tposs as $tpos) {
$posts['id'];
}
echo $midcount;
你将会怎样?
注意:未定义索引:id