Access Entity Manager inside Symfony 5 migration class?

I have added a news relation inside my table, and inside the postUp() method I want update all my Threads.

How can I access to the EntityManager inside my migration class for get all my thread, update them and persist/flush my modifications please?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *