Answers for "doctrine query builder order by multiple"

PHP
3

doctrine order by

<?php
// $qb instanceof QueryBuilder

$qb->select('u')
   ->from('User', 'u')
   ->where('u.id = ?1')
   ->orderBy('u.name', 'ASC');
Posted by: Guest on April-27-2020
0

doctrine query builder order by multiple

$qb->add('orderBy', 'first_name ASC, last_name ASC');
Posted by: Guest on January-24-2021

Browse Popular Code Answers by Language