# \[gelöst\] Plugin - Neues Model erstellen

**URL:** https://forum.shopware.com/t/gelost-plugin-neues-model-erstellen/10441
**Category:** Shopware 3.5
**Tags:** programming
**Created:** [12. Dezember 2012 um 16:43 UTC](https://forum.shopware.com/t/gelost-plugin-neues-model-erstellen/10441 "2012-12-12T16:43:04Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![shredding](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@shredding](https://forum.shopware.com/u/shredding)
#### Post date: [18. Dezember 2012 um 18:13 UTC](https://forum.shopware.com/t/gelost-plugin-neues-model-erstellen/10441/5 "2012-12-18T18:13:24Z")

</div>

@Tim: Wo hängst du? @Maximillian: Die Installvariante geht noch ein bisschen eleganter, nämlich ganz ohne SQL 🙂 - der Vorteil ist, dass du bei Änderungen im Model den Installer nicht anfassen muss; Doctrine generiert das Datenbankschema dann automatisch: ` public install() { $this-\>registerCustomModels(); $modelManager = Shopware()-\>Models(); $schemaTool = new Doctrine\ORM\Tools\SchemaTool($modelManager); $schemaTool-\>createSchema( array( $modelManager-\>getClassMetadata('Shopware\CustomModels\Article\Test') ) ); } `

---

_[View the full topic](https://forum.shopware.com/t/gelost-plugin-neues-model-erstellen/10441)._
