I want my doctrine 2 query below to have more than 1 "order by" category.
However, I noticed that doctrine 2 only supports the last last "order by query" i.e:
->orderBy('u.qualityOfPictures', 'DESC');
Does anyone know whether doctrine 2 supports more than 1 "order by"
If so, what is the correct way to format it.
my query
$qb = $this->queryBuilder()
->select(array('u'))
->from('BaseModel\Entity\User','u')
->orderBy('u.dateOfRegistration', 'DESC')
->orderBy('u.qualityOfPictures', 'DESC');
thank you