As you can see on the documentation: Rather than using an auto-increment key as the primary key, you may also > use char(36). Cake will then use a unique 36 character uuid (String::uuid) > whenever you save a new record using the Model::save method.
So, what's the main diference between INT and CHAR (uniqid) primary keys? I know that uniqid keys would be more "safe" since you can't predict the next or another valid ID but, besides that... there's any other diference? Should I use it on every model or just the critical ones, like the Users table? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
