I would like to have long random numbers as primary key in my database. I am using mysql and doctrine2.
How do I do this the clever way? Do I create a mysql stored function or should I make a Model function?
I thought mysql would be better because the id need to be unique so working closer to the database should be better. What do you think?
Use UUID().