title: Class does not exist symfony 4
body: <p>I am building a crud app using symfony 4. Here is the TodoController.php</p>
  
  <pre><code>&lt;?php
  
  namespace App\Controller;
   use App\Entity\Taskslist;
   use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
   use Symfony\Bundle\FrameworkBundle\Controller\Controller;
   use Symfony\Component\HttpFoundation\Request;
  
   class TodoController extends Controller{
  
  
  /**
  
  *   @Route("/",name="todo_list")
  
  
  */
  public function listAction(){
     $todos=$this-&gt;getDoctrine()-&gt;getRepository('App:Taskslist')-&gt;findAll();
      return $this-&gt;render('todo/index.html.twig',array('todos' =&gt; $todos));
  
  }
  /**
  
  *   @Route("/todo/create",name="todo_create")
  
  
  */
  
  public function createAction(Request $request){
  
      return $this-&gt;render('todo/create.html.twig');
  
  }
  /**
  
  *   @Route("/todo/edit/{id}",name="todo_edit")
  
  
  */
  public function editAction($id,Request $request){
  
      return $this-&gt;render('todo/edit.html.twig');
  
  }
  /**
  
  *   @Route("/todo/details/{id}",name="todo_details")
  
  
  */
  
  public function detailsAction($id){
  
      return $this-&gt;render('todo/details.html.twig');
  
  }
  
   }
  </code></pre>
  
  <p>And here is the  entity:</p>
  
  <pre><code>&lt;?php
  
  
  
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * Taskslist
   *
   * @ORM\Table(name="taskslist")
   * @ORM\Entity
   */
  class Taskslist
  {
      /**
       * @var int
       *
       * @ORM\Column(name="id", type="integer", nullable=false)
       * @ORM\Id
       * @ORM\GeneratedValue(strategy="IDENTITY")
       */
      private $id;
  
      /**
       * @var string
       *
       * @ORM\Column(name="title", type="string", length=255, nullable=false)
       */
      private $title;
  
      /**
       * @var string
       *
       * @ORM\Column(name="description", type="string", length=255, nullable=false)
       */
      private $description;
  
      /**
       * @var bool
       *
       * @ORM\Column(name="status", type="boolean", nullable=false)
       */
      private $status;
  
  
  
  
  
  
  /**
  *@param  int $id
  *@return Taskslist
  */
  
    public function setId($id){
          this-&gt;id=$id;
          return $this;
      }
      /**
      *@return int 
      */
      public function getId(){
          return $this-&gt;id;
      }
  /**
  *@param  string $title
  *@return Taskslist
  */
  
    public function setTitle($title){
          this-&gt;title=$title;
          return $this;
      }
  /**
       * @return string
  */
      public function getTitle(){
          return $this-&gt;title;
      }
  
  
      /**
  *@param  string $description
  *@return Taskslist
  */
  
    public function setDesc($description){
          this-&gt;description=$description;
          return $this;
      }
  /**
       * @return string
  */
      public function getDesc(){
          return $this-&gt;description;
      }
  
  /**
  *@param  bool $status
  *@return Taskslist
  */
  
    public function setStatus($status){
          this-&gt;status=$status;
          return $this;
      }
  /**
       * @return string
  */
      public function getStatus(){
          return $this-&gt;status;
      }
  
  }
  </code></pre>
  
  <p>I tried to use AppBundle instead of App but got an unknown alias error.
  Actually I am getting the following error: Class 'App\Entity\Taskslist' does not exist.
  I have followed many tutorials but they did not help me
  Can you please help me ? Thanks in advance</p>