dushkindigital / marketmap

New, clean repo for Shekhar
2 stars 0 forks source link

Got Constraint Voilation while inserting entry in LiberecoListing_Marketplace table #22

Closed shekhargulati closed 12 years ago

shekhargulati commented 12 years ago

Need to spend some time on it

shekhargulati commented 12 years ago

I have fixed this bug. The problem was that LiberecoListing and Marketplace has OneToMany relationship which meant that one LiberecoListing can be associated with multiple different Marketplaces but one Markteplace can't have multiple different LiberecoListings. The bug was fixed by making the relationship MANY_TO_MANY. To me this is correct relationship.