/** * @param string $entityName der name des Entities ohne den EntitiesNamespace davor */ public function __construct($entity, Module $doctrineModule, ClassWriter $classWriter = NULL, TypeExporter $DCTypeExporter = NULL, array $languages = array()) { $this->module = $doctrineModule; if (!$entity instanceof GClass) { $entity = new GClass($this->getDefaultNamespace() . '\\' . $entity); } parent::__construct($entity); $this->class->setAbstract(TRUE); $this->classWriter = $classWriter ?: new ClassWriter(); $this->dcTypeExporter = $DCTypeExporter ?: new TypeExporter(new CodeWriter()); $this->setLanguages($languages); }