Skip to content

Commit

Permalink
allow to skip extends
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Feb 23, 2022
1 parent 2c21ea9 commit b1ac63f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Generator/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ public function generateEntity(string $table): void
$entity->addConstant($this->config->tableConstant, $table)->setVisibility('public');
}

$entity->setExtends($this->config->extends);
if ($this->config->extends !== NULL) {
$entity->setExtends($this->config->extends);
}

$columns = $this->repository->getTableColumns($table);
$mapping = [];
Expand Down

0 comments on commit b1ac63f

Please sign in to comment.