[DoctrineWriter] Return entity after writeItem() method call#272
[DoctrineWriter] Return entity after writeItem() method call#272fsevestre wants to merge 1 commit intoddeboer:masterfrom
Conversation
|
Whats the usecase of this? I can't merge this PR without any good reason. |
|
Ah nevermind, i don't see the linked issue 🙈 I think you don't use the workflow in the right way. What you want is to persist an collection, this should be handled in the writer itself. |
|
Sorry, I don't figure out how to manage it in your way :s To be more specific on my use case: Each nodes (and for the fun, with inheritance) have a I would like to be able to Thanks for your time |
|
Interesting use case 👍 I would say you should use a item converter which converts your api response to an object (for example your entity). Register the DoctrineWriter and let them persist each node. You don't have to care about persist the relationip. Doctrine will do it for you. One hint: If you import a large dataset, don't use doctrine at all, use raw SQL. Doctrine will consume a huge memory. |
#271
This PR add the return of the entity after calling the
writeItem()method onDoctrineWriter.