concretecms-community-store / community_store

An open, free and community developed eCommerce system for Concrete CMS
https://concretecms-community-store.github.io/community_store/
MIT License
106 stars 66 forks source link

Updating Concrete cause entity inheritance error #860

Open baxterdmutt opened 4 months ago

baxterdmutt commented 4 months ago

I have a couple sites with community store. The issue occurred on each site when I updated concrete. It happened on each update from 9.2.4 to 9.2.7. I did rebuilt the database entities after the first error but it showed again after each next update. Entity 'Concrete\Package\CommunityStore\Entity\Attribute\Key\StoreProductKey' has to be part of the discriminator map of 'Concrete\Core\Entity\Attribute\Key\Key' to be properly mapped in the inheritance hierarchy. Alternatively you can make 'Concrete\Package\CommunityStore\Entity\Attribute\Key\StoreProductKey' an abstract class to avoid this exception from occurring.

Mesuva commented 4 months ago

What caching settings have you had on at the time? There's some code not yet merged into Community Store that might fix this, but part of the issue has been working out how to actually trigger this issue - so the fact it's related to the upgrade might be quite useful to know.

baxterdmutt commented 4 months ago

On one site all the caching settings were on, on another all the caching settings were off. Both had the same issue.

baxterdmutt commented 4 months ago

Hmm, I'm just remembering that on one of the sites after the upgrade the store shipping said that no shipping method was available. I had to re-save the shipping settings and then it was working again. I have no idea if that has anything to do with the issue but thought I should mention it.