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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:52:16+00:00 2026-06-01T00:52:16+00:00

We are using Doctrine 2 for a new project and have run into an

  • 0

We are using Doctrine 2 for a new project and have run into an issue: Doctrine 2 chokes on Postgres table column names with spaces in them. For example, say there is a column named “Sales Person.” While you and I know there should not be a space in the column name, it exists just the same. The databases were designed many years ago, and critical business systems run on them, so the column names cannot be changed. Is there a way around this issue without hacking Doctrine to handle this situation? If not, how would you propose solving this on the Doctrine end?

  • 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-01T00:52:18+00:00Added an answer on June 1, 2026 at 12:52 am

    Looks like another badly coded ORM

    http://docs.doctrine-project.org/projects/doctrine-orm/en/2.0.x/reference/limitations-and-known-issues.html

    http://docs.doctrine-project.org/projects/doctrine-orm/en/2.0.x/reference/basic-mapping.html

    Says helpful things like: “You cannot use non [a-zA-Z0-9_]+ characters, they will break several SQL statements” and “Identifier quoting should not be used to enable the use non-standard-characters such as a dash” and “Schema-Tool will likely have troubles when quoting is used for case-sensitivity reasons”.

    Looks like it’s another ORM that’s been built by someone who doesn’t want it to work with actual databases. Having columns with spaces etc. in them is not a brilliant idea but it’s perfectly legal in SQL.

    You’ve only really got three options:

    1. Rename all the columns (or wrap everything in views).
    2. Hack doctrine
    3. Dump doctrine

    None of them ideal, and I’m not sure what’s going to be easiest in your case.

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

Sidebar

Related Questions

I'm using Doctrine 1.2 as my ORM for a Zend Framework Project. I have
I have some models witch are using Doctrine nestedset feature. I want to add
i'm having a little issue with doctrine using symfony 1.4 (I think it's using
In my Symfony 1.4 project I am using the doctrine:generate-admin task to create the
I have a column in a table defined as following in my yaml file:
I am having a problem with inserting a new row in database using Doctrine
i am new to symfony.i am using symfony1.4 and Doctrine . While adding a
I'm using Doctrine 2 ORM and I have this problem. I have three Entities,
I have been looking at nestedSet behaviour in symfony using doctrine, to display a
I have a bi-directional OneToMany relationship using Doctrine 2 as an ORM within the

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.