我需要类似于这样的东西:
谢谢。
$products = Products::getTable()->find(274);
foreach ($products->Categories->orderBy('title') as $category)
{
echo "{$category->title}<br />";
}
我知道这似乎不可能,但是……如果不创建Doctrine_Query,我该怎么做类似的事情呢?谢谢。
@OrderBy
注释:http://docs.doctrine-project.org/en/2.0.x/reference/annotations-reference.html#annref-orderby - zizoujab