Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6064109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:14:40+00:00 2026-05-23T09:14:40+00:00

I tried the recently released generators yesterday but I came across a problem. I

  • 0

I tried the recently released generators yesterday but I came across a problem. I was properly able to create database & entities. But as soon as I tried to create schema it started showing error like:

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[="..."]]

I finally found the problem, it was that the generated entity had annotations like:

/**
* Acme\BlogBundle\Entity\Post
*
* @Table()
* @Entity
*/

instead of:

/**
* Acme\BlogBundle\Entity\Post
*
* @ORM\Table(name="post")
* @ORM\Entity
*/

I had to add the table name in the @Table annotation and ORM\ manually to all the annotations.

Now the error has changed:

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[="..."]]

How can I fix the timezone error.

and I saw the Symfony Interactive Generators video, 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:14:41+00:00Added an answer on May 23, 2026 at 9:14 am

    This is a PHP issue in your config set your timezone

    date_default_timezone_set('America/Los_Angeles');
    

    There is usually a separate php.ini file for the console.

    Run php -i | grep "Configuration File" this will tell you where the ini file for the console located. Add or edit the timezone in that file: date.timezone = my/timezone.

    Or you could add date_default_timezone_set() to the top of app/AppKernel.php.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently tried appending two byte array slices in Go and came across some
I recently tried to combine SEAM and GWT in a project - but failed
Android 2.3 was recently released last night. So naturally I tried my app on
I've recently released my first app on the market. I tried to install the
I recently tried to create a global header file which would have all definitions
I recently tried to use an implementation of map in javascript to create a
I have recently tried sharpening my rails skills with this tool: http://github.com/edgecase/ruby_koans but I
I tried recently to use NAnt (beta 0.86.2962.0) to run some unit tests compiled
I've recently tried to optimize my site for speed and brandwith. Amongst many other
Recently I tried CodeSmith templates for NHibernate. As many of you might watched, there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.