I’m trying to create a personnal command to change data in my database. I could do it directly with a “SELECT *” … but Symfony says that the good method is to create a command to apply changes in database, etc… So this is the problem i’m facing :
When I override the default __construct method, the Command is not auto-registered by Symfony, which means Symfony just ignore it. When I delete the constructor, my command works but I just get null from my $entitymanager (which is logic since I put nothing into entitymanager ?).
Does anyone have a solution for me please ? Sorry for my bad english and thank you for your help:)
Source: Symfony Questions