Post

Rewind ⏪ Doctrine Queries #15 Ever run into an SQL function that Doctrine didn't support - like MySQL's RAND? Those may not work out-of-the-box (and b/c of a good reason), but they're easy to use thanks to the beberlei/DoctrineExtensions library! symfonycasts.com/screencast/d...

symfonycasts.comUsing RAND() or Other Non-Supported FunctionsAdds support for database-specific DQL functions like RAND() so Doctrine can randomize query order, then uses that custom function to return related FortuneCookie records in random order without…

0 reposts0 likes

No replies yet.