title: How to use Symfony EasyAdmin with entities having a constructor?
body: <p>Does EasyAdmin support entity classes with constructor arguments for properties that are meant to be not nullable? EasyAdmin instantiates the entity class even if you click the "Add " button, right? Unfortunatelly this results in an "Too few arguments to function __construct()" error. Do you have a solution for this problem?</p>
  
  <p>I tend to use the constructor for entity properties that are not nullable. Unfortunatelly EasyAdmin throws errors like this one when I click on the e.g. <code>Add FiscalYear</code> button to create a new entity object (<code>FiscalYear</code> in my example):</p>
  
  <pre><code>Too few arguments to function App\Entity\FiscalYear::__construct(), 0 passed in /myProject/vendor/easycorp/easyadmin-bundle/src/Controller/AdminControllerTrait.php on line 618 and exactly 2 expected
  </code></pre>
  
  <p>How can I prevent these errors? As you can see in the following entity class the two constructor arguments represent the data that is meant to be submitted via the form:</p>
  
  <pre><code>&lt;?php
  declare(strict_types=1);
  namespace App\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * @ORM\Entity(repositoryClass="App\Repository\FiscalYearRepository")
   */
  class FiscalYear
  {
      /**
       * @ORM\Id()
       * @ORM\GeneratedValue()
       * @ORM\Column(type="integer")
       */
      private ?int $id = null;
  
      /**
       * @ORM\Column(type="integer")
       */
      private int $title;
  
      /**
       * @ORM\Column(type="boolean", options={"default": 0})
       */
      private bool $completed = false;
  
      /**
       * @ORM\ManyToOne(targetEntity="App\Entity\Company", inversedBy="fiscalYears")
       * @ORM\JoinColumn(nullable=false)
       */
      private Company $company;
  
      public function __construct(int $title, Company $company)
      {
          $this-&gt;title = $title;
          $this-&gt;company = $company;
      }
  
      public function getId(): ?int
      {
          return $this-&gt;id;
      }
  
      public function getTitle(): int
      {
          return $this-&gt;title;
      }
  
      public function setTitle(int $title): void
      {
          $this-&gt;title = $title;
      }
  
      public function getCompleted(): bool
      {
          return $this-&gt;completed;
      }
  
      public function setCompleted(bool $completed): void
      {
          $this-&gt;completed = $completed;
      }
  
      public function getCompany(): Company
      {
          return $this-&gt;company;
      }
  
      public function setCompany(Company $company): void
      {
          $this-&gt;company = $company;
      }
  }
  </code></pre>
  
  <p>Is there a possibility to let EasyAdmin show the "create a new entity object" form without instantiating the entity class?</p>