It seems this one pops up almost as frequently as HABTM questions.

If you've got a rdbms design where a join table looks likes this:

CREATE TABLE authors_posts (
  author_id INTEGER REFERENCES authors(id) ON DELETE CASCADE,
  post_id   INTEGER REFERENCES posts(id) ON DELETE CASCADE,
  type      INTEGER DEFAULT 0,
  PRIMARY KEY(author_id, post_id, type)
);

you're currently out of luck with CAKE.
(especially with the extra 'type' column, but thats another issue)

I've created two patches myself so I can use a table with primary
key consisting of more than one column.

https://trac.cakephp.org/ticket/1293
https://trac.cakephp.org/ticket/1237

HTH,
Albert

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to