Skip to content

Commit

Permalink
Logical ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Roderik van der Veer committed Apr 28, 2014
1 parent 89c6938 commit 111a6ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Entity/AnalyticsOverview.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function getNewUsersPercentage()

/**
* @ORM\OneToMany(targetEntity="AnalyticsGoal", mappedBy="overview", cascade={"persist"})
* @ORM\OrderBy({"name" = "ASC"})
*/
private $goals;

Expand Down
1 change: 1 addition & 0 deletions Repository/AnalyticsGoalRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function getGoal($id)
$qb->select('g')
->from('KunstmaanDashboardBundle:AnalyticsGoal', 'g')
->where('g.id = :id')
->orderBy('g.name', 'asc')
->setParameter('id', $id);

$results = $qb->getQuery()->getResult();
Expand Down

0 comments on commit 111a6ef

Please sign in to comment.