Re: composite keys to identify a record

2010-04-19 Thread Martin Westin
opinion I see two possibilities: 1 - not create tables with composite keys. When you need to use composite keys to identify a record, create one more field with the name ID and put it as primary key. 2 - forget standardization. Choose one of the fields to put in $ primaryKey attribute

Re: composite keys to identify a record

2010-04-18 Thread j0n4s.h4rtm...@googlemail.com
with composite key. what did you do? Since CakePHP recognizes only one field to primaryKey! In my opinion I see two possibilities: 1 - not create tables with composite keys. When you need to use composite keys to identify a record, create one more field with the name ID and put it as primary key

Re: composite keys to identify a record

2010-04-18 Thread Jeremy Burns
possibilities: 1 - not create tables with composite keys. When you need to use composite keys to identify a record, create one more field with the name ID and put it as primary key. 2 - forget standardization. Choose one of the fields to put in $ primaryKey attribute of the model and when you need

composite keys to identify a record

2010-04-16 Thread Renan Augusto
Dear, Someone must have encountered a situation where a table had with composite key. what did you do? Since CakePHP recognizes only one field to primaryKey! In my opinion I see two possibilities: 1 - not create tables with composite keys. When you need to use composite keys to identify

Re: composite keys to identify a record

2010-04-16 Thread Jeremy Burns
, Someone must have encountered a situation where a table had with composite key. what did you do? Since CakePHP recognizes only one field to primaryKey! In my opinion I see two possibilities: 1 - not create tables with composite keys. When you need to use composite keys to identify a record