Catchable致命错误的FindAll()结果:类DateTime的对象无法转换为字符串


FindAll() result on Catchable Fatal Error: Object of class DateTime could not be converted to string

我做了一个简单的findAll函数,得到了以下错误:

可捕获的致命错误:无法转换DateTime类的对象到vendor '' doctrine''orm''lib'' doctrine''orm''UnitOfWork.php行中的字符串2429

   $em = $this->getDoctrine()->getManager();
   $ppk = $em->getRepository('EgBundle:Table')
                ->findAll();

实体是自动创建的,我没有对此表实体做任何具体的说明。怎么了?我真的不明白。。。

编辑:

显然,在整数和日期之间有一个主键。

if ($class->isIdentifierComposite) {
     (....)
     implode (' ', array('idTrn' => '100', 'date' => object(DateTime)))

http://www.doctrine-project.org/jira/browse/DDC-1209

原则2一直要求id字段可以作为字符串来浇注,这不是DateTime对象的情况。

这有点像

编辑:

但这里有一个最近报道的问题

http://www.doctrine-project.org/jira/browse/DDC-2724