Skip to content

Commit

Permalink
use table constant name from config
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Mar 6, 2019
1 parent 142a92c commit 55abec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function generateEntity(string $table): void
$fqnClassName = '\\' . $this->config->namespace . '\\' . $shortClassName;
$entity = $namespace->addClass($shortClassName);

$entity->addConstant('TABLE', $table)->setVisibility('public');
$entity->addConstant($this->config->tableConstant, $table)->setVisibility('public');

if (class_exists($fqnClassName)) {
$this->cloneEntityFromExistingEntity($entity, ClassType::from($fqnClassName));
Expand Down

0 comments on commit 55abec7

Please sign in to comment.