Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | protected function execute(InputInterface $input, OutputInterface $output) |
||
21 | { |
||
22 | $em = $this->getContainer()->get('doctrine')->getManager(); |
||
23 | $repo = $this->getContainer()->get('doctrine')->getRepository(User::class); |
||
24 | $user = $repo->findOneByUsername($input->getArgument('username')); |
||
25 | $user->setImage(null); |
||
26 | $em->flush(); |
||
27 | } |
||
28 | } |
||
29 |