title: PHP Class DateTime not found
body: <p>Missing something when declaring a DateTime object in <strong>PHP 5.3.8</strong></p>
  
  <p>I get a JSON string with a determinate date time which is passed to my php controller.</p>
  
  <p>For some reason, I am not getting it to be mapped as a DateTime object in php. But sort of weirdly. See the following images:</p>
  
  <ol>
  <li><p>As you can see in the Expressions Window (top right), BEFORE the step, I am checking that new DateTime(myVariable) is bringing and transforming correctly what I need. In the first watch, the variable to pass to DateTime constructor. In the second watch, the expression newDateTime(myVariable) already mapped as a DateTimeObject. Apparently fine up to here.</p>
  
  <p><img src="https://i.stack.imgur.com/BuuMH.png" alt="enter image description here"></p></li>
  <li><p>But, sadly, when I go forward and press F6, the following exemption (see also the image below) is thrown:</p>
  
  <pre><code>Fatal error: Class 'Acme\StoreBundle\Repository\DateTime' not found in /Users/pgbonino/Sites/Symfony/src/Acme/StoreBundle/Repository/HistoryRepository.php on line 19
  
  Call Stack:
      0.0201     693568   1. {main}() /Users/pgbonino/Sites/Symfony/web/app_dev.php:0
      0.0267    2106576   2. Symfony\Component\HttpKernel\Kernel-&gt;handle(???, ???, ???) /Users/pgbonino/Sites/Symfony/web/app_dev.php:24
      0.0377    2649176   3. Symfony\Bundle\FrameworkBundle\HttpKernel-&gt;handle(???, ???, ???) /Users/pgbonino/Sites/Symfony/app/bootstrap.php.cache:547
      0.0378    2650832   4. Symfony\Component\HttpKernel\HttpKernel-&gt;handle(???, ???, ???) /Users/pgbonino/Sites/Symfony/app/cache/dev/classes.php:4879
      0.0378    2650832   5. Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(???, ???) /Users/pgbonino/Sites/Symfony/app/cache/dev/classes.php:3875
      0.1574    5562232   6. call_user_func_array(???, ???) /Users/pgbonino/Sites/Symfony/app/cache/dev/classes.php:3905
      0.1574    5562600   7. Acme\StoreBundle\Controller\HistoryController-&gt;saveTestAction() /Users/pgbonino/Sites/Symfony/app/cache/dev/classes.php:3905
      0.1694    5739032   8. Acme\StoreBundle\Repository\HistoryRepository-&gt;saveTestInHistory(???, ???) /Users/pgbonino/Sites/Symfony/src/Acme/StoreBundle/Controller/HistoryController.php:33
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Ei8AA.png" alt="enter image description here"></p></li>
  </ol>
  
  <p>So, strangely, the Watch Expressions window from Eclipse is not working just like the execution engine and/or vice-versa.</p>
  
  <p>Of course, I'd prefer it to be the opposite (It worked in the execution and not in the watch window :) ).</p>
  
  <p>So, any idea?</p>