你好,我已经通过注解我一个得到这个PHP以一对多的关系学说2,一对多的关系排序依据注解
/**
* TaskCategory
*
* @Table(name="task_category")
* @Entity(repositoryClass="models\Repositories\TaskCategoryRepository")
*/
class TaskCategory
{
/**
* @var array $tasks
*
* @OneToMany(targetEntity="Task", mappedBy="taskCategory"")
* @OrderBy({"sort_order" = "ASC"})
*/
private $tasks;
而且我得到了这个错误:
Uncaught exception 'Doctrine\Common\Annotations\AnnotationException' with message '[Syntax Error] Expected Doctrine\Common\Annotations\Lexer::T_CLOSE_PARENTHESIS, got 'order' at position 108
任何人都得到了类似的问题?任何意见将不胜感激。