Martin,
Join tables do not, and should not require a separate primary key (id)
unless you are storing additional data on the table, which in this case it
is no longer just a join table. I fixed the bug related to that issue
https://trac.cakephp.org/changeset/7918

tekcomp,

You need to write a test case and diff against core model.test.php and open
a ticket http://book.cakephp.org/view/759/Bugreport

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Fri, Dec 19, 2008 at 8:48 AM, Martin Westin
<[email protected]>wrote:

>
> Hi,
> Looks like you have fallen victim to the same thing I did (when RC3
> came along)... thinking that Cake would continue to work with join-
> tables that have a composite pk. It was made clear to me in no
> uncertain terms that a join-table must now have a separate primary key
> (id).
>
> Martin
>
>
>
> On Dec 19, 11:08 am, tekomp <[email protected]> wrote:
> > I left out the full debug of the warning by mistake.  Here is that:
> >
> > Warning (2): Cannot modify header information - headers already sent
> > by (output started at /www/example.com/cake/basics.php:111) [CORE/cake/
> > libs/controller/controller.php, line 615]
> >
> > Code | Context
> >
> > $status =       "Location:http://example.com/websites";
> >
> > header - [internal], line ??
> > Controller::header() - CORE/cake/libs/controller/controller.php, line
> > 615
> > Controller::redirect() - CORE/cake/libs/controller/controller.php,
> > line 596
> > PaysitesController::add() - APP/controllers/websites_controller.php,
> > line 29
> > Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
> > Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 245
> > Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 211
> > [main] - APP/webroot/index.php, line 88
> >
>

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

Reply via email to