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

  • SEARCH
  • Home
  • 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 6956327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:51:17+00:00 2026-05-27T14:51:17+00:00

Good Day, I’m having few issues with Doctrine entities generator while creating new project

  • 0

Good Day,

I’m having few issues with Doctrine entities generator while creating new project in Symfony 2 framework.

For testing purposes, I have following table called users:
id INT PK

username VARCHAR(80)
password VARCHAR(150)
salt VARCHAR(100)
email VARCHAR(100)

I created new project with no problem. I called my new bundle MyTestBundle.

After completing database design, I use php app/console doctrine:mapping:convert yml ./src/My/TestBundle/Resources/config/doctrine/metadata/orm --from-database --force to map database schema to Yaml format files. Then I use php app/console doctrine:mapping:import MyTestBundle annotation and php app/console doctrine:generate:entities MyTestBundle to import mapping and generate entities.

I have few important questions regarding entities generation:

  1. Why does it creates entity called Users instead of User? When I try to modify yml files located in ./src/My/TestBundle/Resources/config/doctrine/metadata/orm the generator seems to ignore them. Any tips?

  2. I need to implement my custom role provider. That’s why I created two additional tables for roles storage (simplified schema below):
    roles: id INT PK, name VARCHAR(50)
    users_roles: id INT PK, user_id INT, role_id INT
    Why generator is ignoring this relation? It creates correct relations in UsersRoles class, but not in Roles or Users entities. Am I missing something?

Any help/explanation will be very appreciated.

Edit
I have noticed really weird thing:
I created simple Yaml schema and put it in ./src/MyTestBundle/resources/config/doctrine/metadata/orm, I called this file User.orm.yml. Now, when I try to import mapping or generate entities I get following error Bundle "MyTestBundle" does not contain any mapped entities.

Warmest greetings,
Dave

  • 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-27T14:51:18+00:00Added an answer on May 27, 2026 at 2:51 pm

    This question was replied on Symfony 2 Group: http://groups.google.com/group/symfony2/browse_thread/thread/fa088382e6546679/50ab1902a573feb6?lnk=gst&q=entity+generation#50ab1902a573feb6

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

Sidebar

Related Questions

Good day, I'm having a problem with asp.net 2.0 viewstate. Basically, I want to
Good day! Despite the fact LINQ2SQL and ADO.NET Entity Framework exists there were situations
Good day! I am using Xcode 3.1.4 and iPhone SDK 2.2.1. I am creating
Good day, I am having an issue trying to get the Text on a
Good day, In SQL Server 2005, when I write a new query, I like
Good day! I am a newbie on creating database... I need to create a
good day guys! in project, among others, have models: class Category(models.Model): name = models.CharField(max_length
Good day everybody! Having the following code: template<typename T, typename OutStream = std::ostream> struct
Good day, We just converted our web application .NET 1.1 to .NET 2.0. We
Good day, In visual studio 2005, when I drop a webcontrol in the designer,

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.