typeorm-fixtures
typeorm-fixtures copied to clipboard
[Feature request] access to entity name in processor
Hello,
I am writing a custom Processor which can be used for several of my models, but in which I need to have access to the name of the table.
Currently I am working around this by creating an abstract processor and one concrete implementation per table. The concrete implementation returns just the name of the entity.
Suggestion: pass the definition of the fixture in the constructor of the processor to be able to access this kind of metadata.
Would be happy to contribute if you agree.
@slukes this is feature that really seems it should be part of the package! Would love to get involved in contributing to this as well. @RobinCK
In the end I got around this issue in another way, but would still be happy to help with a PR @GhettoBurger996