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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:08:07+00:00 2026-05-24T19:08:07+00:00

Typically i create my entities in symfony2/doctrine from this console commands : $php app/console

  • 0

Typically i create my entities in symfony2/doctrine from this console commands :

$php app/console doctrine:mapping:import TestSiteBundle yml
$php app/console doctrine:generate:entities Test --path=src/

but my table columns have prefixes like this :

table: user
id_user
id_address (FK)
nm_name
dt_created
bl_active

and it generates entities like this :

$idUser
$idAdress
$nmName
$dtCreated
$blActive

how can i ignore my column prefixes ? do i need to change my entire database column names ?

  • 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-24T19:08:08+00:00Added an answer on May 24, 2026 at 7:08 pm

    Just so I understand, you want your database column name to be id_user and you want the entity property to be $user? If so, I don’t think that’s possible without doing some serious hacking of the core libraries. Basically you’d need to intercept the part that generates the entity properties and add your own rules on how to name them. You’d be much better off renaming your columns. IMHO, those prefixes are unnecessary. I would change id_user to user_id, nm_name to name, dt_created to created_at, and bl_active to is_active. Your column names and property names will not only match (this is a good thing) but they’ll make more sense.

    Hope this helps.

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

Sidebar

Related Questions

How would one typically create a dynamic factory method in PHP? By dynamic factory
What is the best way to do this? Typically when I create a Query
When I create utility classes I typically create a class that has a private
Typically I create a plugin when I have a module that I know I'm
We typically interface with a RDBMS through SQL. I.e. we create a sql string
Typically I use E_ALL to see anything that PHP might say about my code
In a typical organization application i create, entities User , Projects , Company ,
When performing a dynamic query, RavenDB will typically create a temp index. Retrieving document
I have a stored procedure inside which I create a temporary table that typically
I need to add a URL typically in the format http:\somewebsite.com\somepage.asp. When I create

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.