So, it seems that the value of the primary key cannot be inputted by user. 
Is this correct?

On Friday, August 10, 2012 4:02:25 PM UTC+8, Albert 'Tigr' wrote:
>
> AFAIK you have a choice of:
>
> - integer key that you set in your DB to be auto-incremented
> - UUID key that CakePHP will automatically generate for you
> - any other key that you generate yourself before saving
>
> HTH
> Albert
>
> On Thursday, August 9, 2012 9:59:44 AM UTC+2, Lightee wrote:
>>
>> Dear CakePHP gurus,
>>
>> I am using cakephp scaffolding feature to build a basic CRUD application. 
>> I have a table which gives problem when adding new record. I discover that 
>> the reason is that the primary key is not auto-incremented. May I know 
>> whether this is part of CakePHP convention that primary key has to be 
>> auto-incremented?
>>
>> Other tables with primary keys which are auto-incremented do not give me 
>> problems.
>>
>

-- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to