67127/how-to-order-results-with-findby-in-doctrine
I am using the findBy() method on a Doctrine repository:
$entities = $repository->findBy(array('type'=> 'C12'));
How can I order the results?
Hii @kartik,
Try out this code
$ens = $em->getRepository('AcmeBinBundle:Marks') ->findBy( array(), array('id' => 'ASC') ); Hope this work!!
Thank You!!
Hello @kartik, This worked for me: $cmd = "ping ...READ MORE
Hello @kartik, I found the answer: $mail->AddEmbeddedImage('img/2u_cs_mini.jpg', 'logo_2u'); and on ...READ MORE
Hii, Just unset the node: $str = <<<STR <a> ...READ MORE
Hello @kartik, Here's how you properly fetch the ...READ MORE
Hello, Generating a new CSRF token for each ...READ MORE
Hello, When the variable is passed as value ...READ MORE
Hey @kartik, You have to provide MySQL hostname, ...READ MORE
Hello kartik, Actually there are many functions that ...READ MORE
Hello @kartik, Try-Username: root Password: (No password set). Sometimes it doesn't ...READ MORE
Hello @kartik, Using this command columns names will ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.