# Doctrine Generate Entites

**URL:** <https://forum.shopware.com/t/doctrine-generate-entites/39012>\
**Category:** Programmierung\
**Created:** [12. August 2016 um 11:37 UTC](https://forum.shopware.com/t/doctrine-generate-entites/39012 "2016-08-12T11:37:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ancillius](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Ancillius](https://forum.shopware.com/u/Ancillius)\
**Post date:** [12. August 2016 um 11:37 UTC](https://forum.shopware.com/t/doctrine-generate-entites/39012/1 "2016-08-12T11:37:43Z")

</div>

Hallo,

&nbsp;

ich bin aus der Symfony2 Welt von Doctriune gewohnt, dass ich in einer Entity Klasse die Mappings angebe und dann getter und setter und repository stubs via CLI bin/console doctrine:generate:entities bekomme…

&nbsp;

Geht das mit dem neuen Plugin System in Shopware auch?

&nbsp;

Vielleicht noch als info… bei mir schlägt&nbsp;

```
$ ./console orm:validate-schema
[Mapping] FAIL - The entity-class 'Shopware\Models\Newsletter\Address' mapping is invalid:
* The referenced column name 'email' has to be a primary key column on the target entity class 'Shopware\Models\Customer\Customer'.

```

&nbsp;

&nbsp;

&nbsp;

Bei einer frischen Installation (5.2.1 bis 5.2.4 upgrades, nur Demo Daten)&nbsp;fehl.

(Meine Entities stehen)
