Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试显示学说集合返回的记录数
$t_liste_cra = Doctrine::getTable('Cra')->findByDateAndIdUser($date->toString('yyyy-MM-dd'), $_SESSION['front']['user']); echo ($t_liste_cra->count());
不幸的是,这不起作用。我正在使用学说 1.4
在此先感谢您的帮助
你应该试试:
$t_liste_cra->rowCount();
当您有疑问时,请查看 Doctrine 的源代码(有史以来最好的手册)