Re: Can't seem to get simple HABTM to save...

2015-01-11 Thread John Andersen
Hi Jake Does your events_posts table have a primary key, that is a column named id used for the primary key? If not, then please add such and try again :) Enjoy, John On Sunday, 11 January 2015 16:45:30 UTC+2, Jake Newsom wrote: > > So I have 2 models, Posts and Events. > > Model Post.php looks

Can't seem to get simple HABTM to save...

2015-01-11 Thread Jake Newsom
So I have 2 models, Posts and Events. Model Post.php looks like this: array( "className"=>"Event", "joinTable"=>"events_posts", "foreignKey"=>"post_id", "associationForeignKey"=>"event_id", "unique"=>true ) ); } ?> Model Event.php has this: public $hasAndBelongsToMany = array( "