【发布时间】:2014-12-14 12:20:26
【问题描述】:
我的问题接近this one,但与我的问题不完全吻合。
我在实体中有此列:
/**
* @var ArrayCollection[SubjectTag]
*
* @ORM\OneToMany(targetEntity="SubjectTag", mappedBy="subject")
* @Assert\Count(max = 10, maxMessage = "You can't create more than 10 tags.")
* @Assert\Valid()
*/
protected $subjectTags;
我想按在SubjectTag.position 中定义的位置动态排序我的标签。
【问题讨论】:
标签: php symfony doctrine-orm one-to-many