How to get random data in notorm?

56 views
Skip to first unread message

Dimas Pratama Jati

unread,
Jul 8, 2018, 10:49:36 AM7/8/18
to NotORM
i have a question, how to get random data in notorm?

Allysson David

unread,
Jul 8, 2018, 12:06:43 PM7/8/18
to not...@googlegroups.com
Did you mean something along the lines of "order by rand()"?
I haven't tried yet, but please try using this:
$table->order( new NotORM_Literal("RAND() ASC") )
 

Em dom, 8 de jul de 2018 às 11:49, Dimas Pratama Jati <dimaspra...@gmail.com> escreveu:
i have a question, how to get random data in notorm?

--
You received this message because you are subscribed to the Google Groups "NotORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to notorm+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dimas Pratama Jati

unread,
Jul 8, 2018, 9:25:42 PM7/8/18
to NotORM
yess, thank you very much
Reply all
Reply to author
Forward
0 new messages