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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:00:26+00:00 2026-06-18T15:00:26+00:00

I’m trying to set up a project using Doctrine 2.3.2 on a database-first implementation.

  • 0

I’m trying to set up a project using Doctrine 2.3.2 on a database-first implementation. after generating the xml and the mappings, then calling orm:validate-schema it shows me that the mapping is right but the database validation fails. In using the schema tool to find out where my issues I’m finding 2 issues are repeating over and over:

  1. change all my varchars that aren’t already at 255 to varchar(255)
  2. drop my primary key with for example the columns (A, B, C) and then create a new primary key with the same columns in a different order (B, A, C)

Both of these things seem meaningless to change. Why would Doctrine force me to change my schema in ways that seem meaningless?

The solution to both of these without changing the database schema is:

  1. the convert-mapping doesn’t appear to add the length property to the id field – add it to the xml
  2. This appears to be caused by a difference between the order of the columns in the table, and the order of the columns in the Primary Key. Re-order the order of the xml entries to match the order of the Primary Key.

Having to 2 #1 I’m assuming is a bug – which I will report soon. However, is #2 above a bug or does changing the order mess with Doctrine’s logic in some way?

  • 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-18T15:00:27+00:00Added an answer on June 18, 2026 at 3:00 pm

    The more I think about this the more I believe it to be an oversight and not done intentionally. I was thinking there was something I was missing but I think these are issues with the library and have added them doctrine’s JIRA.

    EDIT: Links per request

    • http://www.doctrine-project.org/jira/browse/DDC-2280
    • http://www.doctrine-project.org/jira/browse/DDC-2281
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm making a simple page using Google Maps API 3. My first. One marker
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.