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.
How do I use Doctrine in Symfony to get page title from a table of pages?
For example:
$title = Doctrine::getTable('MyTable')->getTitle($this->page_id);
您需要抓住对象,然后从中拉出标题。
尝试:
$object = Doctrine::getTable('MyTable')->find($this->page_id); $title = $object->getTitle();