Incorrect table mapping when using EntityGenerator
with entitySchema
#3915
Labels
bug
Something isn't working
EntityGenerator
with entitySchema
#3915
Describe the bug
When using the
EntityGenerator
helper to generate the entities from existing database schema, the generated entity is mapped to wrong or non-existing table name especially when the table name has underscore (_
).This may be happening for other special characters as well.
Stack trace
To Reproduce
Steps to reproduce the behavior:
Address_lines
Expected behavior
Entity class and schema files generated with corresponding table name.
Additional context
A possible issue could be in this line https://github.com/mikro-orm/mikro-orm/blob/master/packages/entity-generator/src/EntitySchemaSourceFile.ts#L45
Versions
The text was updated successfully, but these errors were encountered: