# Class is not a valid entity or mapped super class

**URL:** <https://forum.shopware.com/t/class-is-not-a-valid-entity-or-mapped-super-class/51868>\
**Category:** Programmierung\
**Created:** [19. März 2018 um 13:40 UTC](https://forum.shopware.com/t/class-is-not-a-valid-entity-or-mapped-super-class/51868 "2018-03-19T13:40:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fensterscheibe](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@Fensterscheibe](https://forum.shopware.com/u/Fensterscheibe)\
**Post date:** [19. März 2018 um 13:40 UTC](https://forum.shopware.com/t/class-is-not-a-valid-entity-or-mapped-super-class/51868/1 "2018-03-19T13:40:26Z")

</div>

Hallo,

ich versuche ein ganzes einfaches Model zu erstellen und dann die Datenbank mit den dazuhörigen Spalten&nbsp;erzeugen zu lassen:

Questions.php:

fmQuestions.php (Plugin Klasse):

```
createSchema();
        }

        public function createSchema()
        {
            $entityManager = $this->container->get('models');

            $tool = new SchemaTool($entityManager);

            $tool->createSchema([
                $entityManager->getClassMetadata(Questions::class)
            ]);

        }

    }

```

**Fehlermeldung:&nbsp;Class “fmQuestions\Models\Questions” sub class of “Shopware\Components\Model\ModelEntity” is not a valid entity or mapped super class.**

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [19. Juli 2019 um 09:54 UTC](https://forum.shopware.com/t/class-is-not-a-valid-entity-or-mapped-super-class/51868/2 "2019-07-19T09:54:21Z")

</div>

Please refer

[https://linkstraffic.net/class-is-not-a-valid-entity-or-mapped-super-class-zf3/](https://linkstraffic.net/class-is-not-a-valid-entity-or-mapped-super-class-zf3/)
