Command/GenerateDocumentClassCommand.php
changeset 18 6f16b9fd6a17
parent 17 81962874e172
child 23 b435f8055cb4
--- a/Command/GenerateDocumentClassCommand.php	Thu Oct 27 05:51:04 2011 +0200
+++ b/Command/GenerateDocumentClassCommand.php	Thu Oct 27 21:21:11 2011 +0200
@@ -29,7 +29,7 @@
         
         $this
             ->setName('wikitag:generate-document-class')
-            ->setDescription('Generate the document class document class')
+            ->setDescription('Generate the document class')
             ->addArgument('path', InputArgument::OPTIONAL, 'The generation path')
             ->addOption("simulate","S",InputOption::VALUE_NONE, "Simulate generation");
     }
@@ -44,7 +44,7 @@
         
         $definition = new Definition('IRI\Bundle\WikiTagBundle\Entity\Document');
         
-        $definition->setParentClass('IRI\Bundle\WikiTagBundle\Model\Document');
+        $definition->setParentClass('\IRI\Bundle\WikiTagBundle\Model\Document');
         
         $fields = $this->getContainer()->getParameter('wiki_tag.fields');
         foreach ( $fields as $name => $field_def)