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 7877777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:28:18+00:00 2026-06-03T03:28:18+00:00

when i tried to use symfony2 doctrine reverse engineering tools, I have a one

  • 0

when i tried to use symfony2 doctrine reverse engineering tools, I have a one to many relationship. for example:

A: id, name; B: id, a_id, name   

so the reverse engineering tools give me something like:

class A{  
  private id;
  private name;
}
class B{
  private id, 
  private A a;
  private name;
}   

but what I need is :

class A{
  private id;
  private Bs;
  private name;
}   

How can I make doctrine tools generate this for me ? because the data is changing and I do not want to rewrite every time the database changes.

  • 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-06-03T03:28:20+00:00Added an answer on June 3, 2026 at 3:28 am

    I am sorry to be the bringer of bad news, but you can’t. The only option is to generate the entities and then add the specifics yourself.

    http://readthedocs.org/docs/doctrine-orm/en/2.0.x/reference/tools.html#entity-generation

    This command is not suited for constant usage. It is a little helper
    and does not support all the mapping edge cases very well. You still
    have to put work in your entities after using this command.

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

Sidebar

Related Questions

I have a data model in Doctrine/symfony. I have a 'Course' which has many
I use Doctrine2 as ORM in a Symfony2 project. I have article and tag
I have added the translator service for my Symfony2 project. I use it both
I found an odd behaviour of Doctrine's reverse engineering process, just create two simple
I have in symfony created 2 entities: User and Role in many-to-many relationship. That
I tried to use an image file in my HTML template. But when I
I tried to use object expression to extend the IDelegateEvent, but in fsi there
I tried to use $.cssRule() plugin and found that it makes it inconvenient to
I tried to use the Http Authentication Digest Scheme with my php (apache module)
I tried to use InvokeSelf for silverlight to communicate with html: InvokeSelf can take

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.