On Aug 24, 9:23 am, Adam Royle <[EMAIL PROTECTED]> wrote:
> It is required by cakephp.

Not really.  That setup should actually work fine.  Just set
$primaryKey = "product_id" in your ProductDetail model, and make sure
you set the product_id field when creating new records.

> On Aug 24, 5:31 am, varunkrish <[EMAIL PROTECTED]> wrote:
>
> > I have two tables
>
> > products(product_id- primary key , auto-increment)
>
> > product_details(product_id - primary_key)
>
> > product_id is the foreign key
>
> > i dont want to have one more auto increment column in details table
>
> > any one have same problem ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to