Displaying 1 result from an estimated 1 matches for "fk_cp_listing".
2006 Mar 30
5
Heeelp - no idea what''s going wrong.
...gories(id),
primary key (id)
);
create table listings_subcategories
(practically a duplicate of categories_listings, which works)
subcategory_id int not null,
listing_id int not null,
constraint fk_cp_subcategory foreign key (subcategory_id) references
subcategories(id),
constraint fk_cp_listing foreign key (listing_id) references
listings(id),
primary key (subcategory_id, listing_id)
);
When I try to create a listing with subcategories the array
subcategory_ids is populated correctly, and the listing is created, but
the listing has no subcategories and the table listings_subcategor...