Your Account

Community

Topics (Upcoming)

More

View story

2
0
Retrieving a random record in Symfony using Propel
http://feeds.feedburner.com/~r/symfony/planet/~3/275010927/
Submitted by narko 18 months, 3 weeks, 3 days, 13 hours ago
Just a quicky, as I had to spend 10 mins looking this up hopefully it’ll save someone else time later. I need to retrieve a random user from the users table, but didn’t know how to express a random record… this method will return a single random user, or can take an argument to return more than 1 UserPeer public static function...
Tags: none
Add your comment

If you already have an account, sign in:

Email address:
Password:

If you don't, just complete these fields: (or join SymfonyLab for free)

Your name:
Your site: (optional)

Your comment:

(You have up to 5000 characters left)

Can you see the 5 most prominent letters/numbers in this image? (case insensitive)

Please enter them here:

« go back

Home | Tools | Help & FAQ | About SymfonyLab | Contact us

Âé SymfonyLab 2007

Powered by coRank.com