Re: Save HABTM, Undefined index: id

2009-08-30 Thread Wilson
Thanks Martin! That works. Not quite sure why, but I've added an 'id' field to my join table. For the multi-saves, there's no error, but nothing is written to the field? Anyhow, I appreciate your help. Wilson On Aug 17, 4:02 am, Martin Westin martin.westin...@gmail.com wrote: Which model

Re: Save HABTM, Undefined index: id

2009-08-17 Thread Martin Westin
Which model doesn't have an id field? If it has an pk or uid or some other name you should just let Cake know via the attribute $primaryKey. The join-table can manage without any primary key as long as you don't store any extra data in it. But this is not encouraged, it seems to be considered as

Save HABTM, Undefined index: id

2009-08-16 Thread Wilson Sheldon
Hi everyone, Anytime I save a HABTM relationship, I always get this error: Notice (8): Undefined index: id Everything works, but of course, this is annoying when I'm not in production mode. There is no plain 'id' in the model. Done a bit of research on it, and found a few others who mention