Hello, I have this php order for annotations in my one to many relationship
/** * 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;
And I got this error:
Uncaught exception 'Doctrine\Common\Annotations\AnnotationException' with message '[Syntax Error] Expected Doctrine\Common\Annotations\Lexer::T_CLOSE_PARENTHESIS, got 'order' at position 108
Has anyone got a similar issue? Any recommendations would be greatly appreciated.
source share