title: Missing Argument in for __construct
body: <p>I get this error where I run : </p>
  
  <pre><code>$db = new PDO('mysql:host=localhost;dbname=MYDATABASE', 'root', '');
  $db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
  
  $Manager = new CompanyManager($db);
  $Manager-&gt;getList();
  </code></pre>
  
  <p>ERROR : </p>
  
  <pre><code>Warning: Missing argument 2 for Company::__construct(), called in /.../CompanyManager.class.php on line 53 and defined in /.../Company.class.php on line 17
  </code></pre>
  
  <p>Here is the part of CompanyManager.class.php :</p>
  
  <pre><code>  public function getList()
    {
      $Company = array();
  
      $q = $this-&gt;_db-&gt;query('SELECT id, statut, company, activity, source, secteur, comments, offer_date, entry_date, type_ope, gestionnaire, next_step FROM prospect ORDER BY id');
  
      while ($donnees = $q-&gt;fetch(PDO::FETCH_ASSOC))
      {
        $Company[] = new Company($donnees);
      }
  
      return $Company;
    }
  </code></pre>
  
  <p>And here is Company.class.php (interesting part) : </p>
  
  <pre><code>&lt;?php
  class Company
  {
      private $_id;
      private $_statut;
      private $_company;
      private $_activity;
      private $_source;
      private $_secteur;
      private $_comments;
      private $_offerDate;
      private $_entryDate;
      private $_typeOpe;
      private $_gestionnaire;
      private $_nextStep;
  
      public function __construct($id, $statut, $company, $activity, $source, $secteur, $comments, $offerDate, $entryDate, $typeOpe, $gestionnaire, $nextStep)
      {
          $this-&gt;setId($id);
          $this-&gt;setStatut($statut);
          $this-&gt;setCompany($company);
          $this-&gt;setActivity($activity);
          $this-&gt;setSource($source);
          $this-&gt;setSecteur($secteur);
          $this-&gt;setComments($comments);
          $this-&gt;setOfferDate($offerDate);
          $this-&gt;setEntryDate($entryDate);
          $this-&gt;setTypeOpe($typeOpe);
          $this-&gt;setGestionnaire($gestionnaire);
          $this-&gt;setNextStep($nextStep);
      }
  </code></pre>
  
  <p>BIG thanks for everyone who gonna try to give me a hand ;-)</p>