Falsch (Attributes sind CamelCase):
$cats = Shopware()->Modules()->Categories()->sGetMainCategories();
Richtig (Attribute mit Underscore):
$catId = Shopware()->Shop()->getCategory()->getId();
$cats = Shopware()->Modules()->Categories()->sGetCategories($catId);
Wenn man sich mal etwas im SearchBundle von Shopware rumtreibt und dann selbst mit Doctrine die Property-Klassen aus dem SerachBundle auf die realen doctrine Models/Entities mappen möchte, sollte man beachten:
SearchBundle: Set
Doctrine: Group
SearchBundle: Group
Doctrine: Option
SearchBundle: Option
Doctrine: Value
Konsistenz mag dahinter stecken, aber ich kann sie nicht erkennen.
Also kann etwas so aussehen:
/** @var Shopware\Models\PropertyGroup $group */
$group = Shopware()->Models()->find(Shopware\Models\PropertyGroup::class, $setSearchBundle->getId());