【发布时间】:2023-03-22 16:27:02
【问题描述】:
我尝试从消息实体获取“内容”。 这是我的转储($messages): http://s13.postimg.org/96ytd93vb/message.png
和我在控制器中的代码:
$em = $this->getDoctrine()->getEntityManager();
$messages = $em->getRepository('DashboardMainBundle:Message')->findBy(
array(
'receiver'=> $UserId,
'id' => $Id
),
array('createdAt' => 'ASC')
);
如何从控制器中的这个数组中获取“内容”?
看起来很简单,但我尝试了很多方法,但都失败了......
【问题讨论】: