On Jun 21, 4:15 pm, Jon Bennett <[email protected]> wrote: > > 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. > > Ahh, didn't realise that - in that case I'd use char(36) as cake > expects rather than varchar(32)
You're still implying that there is a choice of only 2 possibilities to choose from, which isn't the case. Since varchar(32) isn't appropriate for a uuid it's a fair assumption that the OP isn't using uuids anyway (and obviously doesn't want an autoincrement either). You can use whatever field type you like for a primary key - cake doesn't care (unless it's a char 36 in which case it'll assume you want automatic uuids). e.g. you could if you were so inclined use a bool and juggle your two rows. AD 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
