-
-
Notifications
You must be signed in to change notification settings - Fork 432
Open
Description
I have the config for final entities enabled
maker:
generate_final_entities: true
But when using the make:entity
command the class is still created without the final keyword. It seems that the option is not passed/used in the process of generating an entity.
maker-bundle/src/Maker/MakeEntity.php
Lines 192 to 197 in c86da84
$entityPath = $this->entityClassGenerator->generateEntityClass( | |
entityClassDetails: $entityClassDetails, | |
apiResource: $input->getOption('api-resource'), | |
broadcast: $broadcast, | |
useUuidIdentifier: $this->getIdType(), | |
); |
maker-bundle/src/Doctrine/EntityClassGenerator.php
Lines 80 to 92 in c86da84
$entityPath = $this->generator->generateClass( | |
$entityClassDetails->getFullName(), | |
'doctrine/Entity.tpl.php', | |
[ | |
'use_statements' => $useStatements, | |
'repository_class_name' => $repoClassDetails->getShortName(), | |
'api_resource' => $apiResource, | |
'broadcast' => $broadcast, | |
'should_escape_table_name' => $this->doctrineHelper->isKeyword($tableName), | |
'table_name' => $tableName, | |
'id_type' => $useUuidIdentifier, | |
] | |
); |
class <?= $class_name."\n" ?> |
Metadata
Metadata
Assignees
Labels
No labels