Jon,

Cake allows other types for the primary key.  For example, also from
the CakePHP manual, you can use varchar(36) and CakePHP will use
UUID's.  AFAIK, any other data type, and you'll be on your own to
supply the key during creates.

On Jun 21, 9:06 am, Jon Bennett <jmbenn...@gmail.com> wrote:
> > i tried do save save a model which primary is a varchar (32). Nothing
> > special
>
> > When i call save() it throws me a fatal error
>
> Read the conventions - Cake requires primary_keys to be
> auto-incrementing integers.
>
> J
>
> --
> jon bennett -www.jben.net- blog.jben.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to