3
我怎样才能得到一个对象在教条1.2中使用他的ID?教义1.2如何通过id获取对象?
无需编写sql或Dql。 我没有在这个文档中找到它: https://doctrine.readthedocs.org/en/latest/en/manual/working-with-models.html#fetching-objects
我怎样才能得到一个对象在教条1.2中使用他的ID?教义1.2如何通过id获取对象?
无需编写sql或Dql。 我没有在这个文档中找到它: https://doctrine.readthedocs.org/en/latest/en/manual/working-with-models.html#fetching-objects
$user = Doctrine_Core::getTable('User')->find(1);
在这里,你去学说1.2
这里有一个参考......但无处文档,您会希望它:( http://docs.doctrine-project.org/projects/doctrine1/en/latest/en/manual/working-with-models.html#retrieving-related-records
什么是“dakmdaklsd alksdlkamsd kldlksmdklm”的翻译? – maazza 2013-04-26 14:44:18
我认为这位文件撰稿人要么是一个扣押者,要么他是克林贡语的一位忠实粉丝 – nvanesch 2013-04-26 14:57:43