title: Symfony2 Error in generated entity and timezone error in console
body: <p>I tried the recently released generators yesterday but I came across a problem. I was properly able to create database &amp; entities. But as soon as I tried to create schema it started showing error like:</p>
  
  <pre><code>php app/console doctrine:schema:create
  
    [Doctrine\Common\Annotations\AnnotationException]                                                    
    [Semantical Error] The annotation "@Table" in class Acme\BlogBundle\Entity\Post was never imported.  
  
  doctrine:schema:create [--dump-sql] [--em[="..."]]
  </code></pre>
  
  <p>I finally found the problem, it was that the generated entity had annotations like:</p>
  
  <pre><code>/**
  * Acme\BlogBundle\Entity\Post
  *
  * @Table()
  * @Entity
  */
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>/**
  * Acme\BlogBundle\Entity\Post
  *
  * @ORM\Table(name="post")
  * @ORM\Entity
  */
  </code></pre>
  
  <p>I had to add the table name in the @Table annotation and ORM\ manually to all the annotations.</p>
  
  <p>Now the error has changed:</p>
  
  <pre><code>php app/console doctrine:schema:create
  ATTENTION: This operation should not be executed in a production environment.
  
  Creating database schema...
  
  [Exception] DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead.
  
  doctrine:schema:create [--dump-sql] [--em[="..."]]
  </code></pre>
  
  <p>How can I fix the timezone error.</p>
  
  <p>and I saw the <a href="http://symfony.com/blog/symfony2-getting-easier-interactive-generators" rel="nofollow">Symfony Interactive Generators video</a>, the entity is generated by default with @ORM\ . Only the table name was for manual addition. Why did my distribution generate it with incorrect annotations.</p>