# Plugin: Unable to install.. &quot;Class 'Shopware\\CustomModel\\..&quot;

**URL:** <https://forum.shopware.com/t/plugin-unable-to-install-quot-class-shopware-custommodel-quot/27447>\
**Category:** Programmierung\
**Created:** [20. Mai 2015 um 19:17 UTC](https://forum.shopware.com/t/plugin-unable-to-install-quot-class-shopware-custommodel-quot/27447 "2015-05-20T19:17:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ulfe](https://avatars.discourse-cdn.com/v4/letter/u/7ba0ec/32.png) [@Ulfe](https://forum.shopware.com/u/Ulfe)\
**Post date:** [20. Mai 2015 um 19:17 UTC](https://forum.shopware.com/t/plugin-unable-to-install-quot-class-shopware-custommodel-quot/27447/1 "2015-05-20T19:17:40Z")

</div>

Moinsen Community, ich versuche grad mein Model zum laufen zu bringen, jedoch schmiert das direkt bei der Installation schon ab. Bin jetzt seit über 2 Stunden am probieren und verzweifel solangsam. Bekomme bei der Installation im Backend immer folgende Fehlermeldung: [quote]“Unable to install, got exception: Class ‘Shopware\CustomModels\Setup\Test’ does not exist”[/quote] Meine install Methode in der Bootstrap.php ` public function install() { $this-\>installDBSchema(); // do stuff.... return true; } ` Und hier wird vermutlich der Fehler liegen: ` /\*\* \* \* @throws \Doctrine\ORM\Tools\ToolsException \*/ protected function installDBSchema() { $this-\>registerCustomModels(); $entryModel = $this-\>Application()-\>Models(); $tool = new \Doctrine\ORM\Tools\SchemaTool($entryModel); $classes = array( $entryModel-\>getClassMetadata('Shopware\CustomModels\Setup\Test') ); $tool-\>createSchema($classes); } ` Mein Model liegt meines Erachtens auch richtig unter PLUGIN\_FOLDER\Models\Setup\Test.php Die Test.php hat folgenden Inhalt: [code]\<?php namespace Shopware\CustomModels\Setup\Test;

use Symfony\Component\Validator\Constraints as Assert;  
use Doctrine\Common\Collections\ArrayCollection;  
use Shopware\Components\Model\ModelEntity;  
use Doctrine\ORM\Mapping AS ORM;

/\*\*

- @ORM\Entity(repositoryClass=“Repository”)

- @ORM\Table(name=“dummy\_table”)  
\*/  
class Test extends ModelEntity {

---

<div class="post-metadata">

**Author:** ![DanielNogel](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@DanielNogel](https://forum.shopware.com/u/DanielNogel)\
**Post date:** [20. Mai 2015 um 19:20 UTC](https://forum.shopware.com/t/plugin-unable-to-install-quot-class-shopware-custommodel-quot/27447/2 "2015-05-20T19:20:45Z")

</div>

Hi, deine Model-Klasse heißt ja schon “Test”, du hast das oben im Model aber auch nochmal im Namespace drin. Das sollte der Fehler sein. Gruß, Daniel

---

<div class="post-metadata">

**Author:** ![Ulfe](https://avatars.discourse-cdn.com/v4/letter/u/7ba0ec/32.png) [@Ulfe](https://forum.shopware.com/u/Ulfe)\
**Post date:** [20. Mai 2015 um 19:25 UTC](https://forum.shopware.com/t/plugin-unable-to-install-quot-class-shopware-custommodel-quot/27447/3 "2015-05-20T19:25:14Z")

</div>

Moin, danke für die schnelle Antwort & Hilfe, das hat geklappt. Man verdammt, daran hab ich überhaupt nicht gedacht, \*Facepalm\*! LG Ulf
