title: Symfony 4: doctrine in command
body: <p>I am using symfony 4 and I want to access a repository for an entity if I am in the Command class. There is not a function <code>getDoctrine</code> or something..</p>
  
  <p>I have created an Entity through the console, so I got an entity and a repository.</p>
  
  <p>Does anybody know how I can access the repository?</p>