Skip to content

Commit d59f7fc

Browse files
committed
Order tags by ascending
1 parent eba7c9f commit d59f7fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AppBundle/Entity/Post.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class Post
105105
*
106106
* @ORM\ManyToMany(targetEntity="AppBundle\Entity\Tag", cascade={"persist"})
107107
* @ORM\JoinTable(name="symfony_demo_post_tag")
108+
* @ORM\OrderBy({"name": "ASC"})
108109
* @Assert\Count(max="4", maxMessage="post.too_many_tags")
109110
*/
110111
private $tags;

0 commit comments

Comments
 (0)