#1365 new
Ben Burkert

many-to-many association with an STI subclass.

Reported by Ben Burkert | July 16th, 2010 @ 01:12 AM

Hey folks,

I was trying to add a many to many relationship to an STI subclass, and was unable to save the result due to an error with the join table. The error message was the following:

DataObjects::SQLError Exception: Field 'customer_feature_id' doesn't have a default value

I believe this was a field on the join table because the STI subclass was CustomerFeature. I have attached a patch for a failing spec which I believe demonstrates this behavior. I'm still trying to debug this issue and provide a possible fix.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments

Pages