typeorm-fixtures icon indicating copy to clipboard operation
typeorm-fixtures copied to clipboard

[Feature request] access to entity name in processor

Open slukes opened this issue 1 year ago β€’ 2 comments

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 avatar Aug 28 '23 12:08 slukes

@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

GhettoBurger996 avatar Sep 16 '23 10:09 GhettoBurger996

In the end I got around this issue in another way, but would still be happy to help with a PR @GhettoBurger996

slukes avatar Sep 24 '23 16:09 slukes