Shopware 6: How to NOT extend … non-entities

We have a feature to implement: We need multiple groups for customers. And because we already have good experience with tags, we implement it with tags. Customer is part of a band? Cool, give them the tag “Die Prinzen“. They are part of multiple bands? No problem, tag them with “Versengold” also. Do I justContinue reading “Shopware 6: How to NOT extend … non-entities”

Shopware: Save new entity – don’t use getVars()

I’m a Magento developer and therefore I save entities. I’m used to it and using a class to set all properties on it is a great way to interact with an entity. Shopware doesn’t. To create a new entity you call create on a repository and pass an array to it. Like this example fromContinue reading “Shopware: Save new entity – don’t use getVars()”