Shopware uses UUIDs. One of the cool things about UUIDs is, that they are so long and random, that you can be pretty sure (as in, no need to think about it – ever) that you never get one twice. That means that it allows setups like shopware does not decide which UUID is usedContinue reading “Shopware: Hard coded UUIDs”
Tag Archives: entity
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()”
Shopware 6: Cannot access private property Namespace\Class::$property
You have this error? More trace is at the end of the post. The properties of your Entity need to be protected.