# shopware6 entity "framework" features

**URL:** <https://forum.shopware.com/t/shopware6-entity-framework-features/64046>\
**Category:** Programmierung\
**Created:** [16. Januar 2020 um 12:23 UTC](https://forum.shopware.com/t/shopware6-entity-framework-features/64046 "2020-01-16T12:23:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wontfix](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wontfix](https://forum.shopware.com/u/wontfix)\
**Post date:** [16. Januar 2020 um 12:23 UTC](https://forum.shopware.com/t/shopware6-entity-framework-features/64046/1 "2020-01-16T12:23:43Z")

</div>

in shopware5 müssen wir plugin entwickler ja nur eine datei per entity schreiben und der entity framework (doctrine) macht denn rest. veeeeery nice!

jetzt lese ich in [https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/indepth-guide-bundle/entity](https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/indepth-guide-bundle/entity)&nbsp;  
das in shopware6 müssen wir VIER datein per entity schreiben, UND müssen noch MANUELL SQL für die datenbank erstellung schreiben… (und anscheinend für assoziationen noch mehr datein…)

ist dies das beste was shopware6 entity “framework” bietet, oder kommt da noch was?

wieso muss der shopware6 plugin entwickler:

- mehr als eine datei per entity schreiben?
- die entity manuell registrieren?
- datenbank erstellung/migration manuell in sql schreiben?

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [16. Januar 2020 um 14:30 UTC](https://forum.shopware.com/t/shopware6-entity-framework-features/64046/2 "2020-01-16T14:30:31Z")

</div>

Hallo wontfix,

vielleicht hilft dir dieses Plugin weiter:&nbsp;[GitHub - FriendsOfShopware/FroshDevelopmentHelper: Helpful development tools](https://github.com/FriendsOfShopware/FroshDevelopmentHelper)

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![ben\_nussbaum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/ben_nussbaum/32/7872_2.png) [@ben\_nussbaum](https://forum.shopware.com/u/ben_nussbaum)\
**Post date:** [11. Februar 2020 um 09:50 UTC](https://forum.shopware.com/t/shopware6-entity-framework-features/64046/3 "2020-02-11T09:50:27Z")

</div>

Ist da in der Zukunft etwas für Shopware 6 geplant? Hätte nämlich auch erwartet, dass das Doctrine die Arbeit des SQL schreibens abnimmt.

---

<div class="post-metadata">

**Author:** ![ben\_nussbaum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/ben_nussbaum/32/7872_2.png) [@ben\_nussbaum](https://forum.shopware.com/u/ben_nussbaum)\
**Post date:** [18. Februar 2020 um 17:47 UTC](https://forum.shopware.com/t/shopware6-entity-framework-features/64046/4 "2020-02-18T17:47:09Z")

</div>

Update: wie in der Doku verlinkt, generiert&nbsp;

```
bin/console dal:create:schema

```

zumindest die SQL Schemas. Siehe hier:&nbsp;[Shopware 6: Updating your plugin via migrations](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/plugin-migrations#sql-schema)&nbsp;
