Check also the official doctrine w3coded orm 2 documentation for more details on how to use w3coded orm 2 ordering, limit and offset as second to fourth w3coded orm 2 parameters in the findBy method.,I'm looking for w3coded orm 2 a way to use Doctrine in Symfony 2 to find items w3coded orm 2 using an ordered array of id., w3coded orm 2 1 w3coded orm 2 w3coded orm 2 I was not able to do this directly in w3coded orm 2 Doctrine, but here's a way to get a specified w3coded orm 2 ordering (4, 7, 1, 6 in this example) from w3coded orm 2 Postgres: select * from my_table join w3coded orm 2 unnest('{4,7,1,6}'::varchar[]) with ordinality w3coded orm 2 o(my_id, ord) on o.my_id = my_table.my_id order w3coded orm 2 by ord asc; w3coded orm 2 – Derek Kurth w3coded orm 2 Sep 4 '19 at 20:38 w3coded orm 2 w3coded orm 2 , w3coded orm 2 Stack Overflow w3coded orm 2 for Teams Where w3coded orm 2 developers & technologists share private w3coded orm 2 knowledge with coworkers w3coded orm 2
You can use it like:
$cardRepository->findBy( array('id' => $idsArray), array('id' => 'DESC') );
Last Update : 2023-09-22 UTC 13:11:07 PM
Last Update : 2023-09-22 UTC 13:10:51 PM
Last Update : 2023-09-22 UTC 13:10:41 PM
Last Update : 2023-09-22 UTC 13:10:32 PM
Last Update : 2023-09-22 UTC 13:10:25 PM
Last Update : 2023-09-22 UTC 13:09:58 PM
Last Update : 2023-09-22 UTC 13:09:47 PM