From shopware-data
OneToMany-Associations in Shopware 6 DAL (Eltern hat viele Kinder), inkl. OneToManyAssociationField, ReferenceField, CascadeDelete, autoload. Trigger: "OneToMany", "1:n Beziehung", "hat viele", "child entities", "OneToManyAssociationField", "Kinder-Entities". Shopware 6.7.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shopware-data:sw-associations-onetomanyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Eltern-Entity referenziert mehrere Kinder; die FK liegt in der **Kind**-Tabelle.
Eltern-Entity referenziert mehrere Kinder; die FK liegt in der Kind-Tabelle.
// in der Eltern-Definition
(new OneToManyAssociationField('lines', FfLineDefinition::class, 'example_id'))
->addFlags(new CascadeDelete()),
// in der Kind-Definition
(new FkField('example_id', 'exampleId', FfExampleDefinition::class))->addFlags(new Required()),
(new ManyToOneAssociationField('example', 'example_id', FfExampleDefinition::class, 'id')),
CascadeDelete löscht Kinder mit dem Elternteil. autoload(true) vermeiden (Performance, ADR
„deprecate autoload true") — Associations gezielt per Criteria laden (sw-criteria).
→ Alle 7 Association-Typen & Details: references/associations.md
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
npx claudepluginhub zone1987/claude-a-dev-team --plugin shopware-data