DDC-2467: Incorrect work with default values, indexes, autoincrement (patch attached) #3097

Open
opened 2026-01-22 14:12:06 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (May 23, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user and:

If you use in your MySQL database default values, indexes or string primary key, you get incorrect mapping by mapping generator. For get it - just use in database one or more from listed abilities, generate mapping for that and then try to dump-sql with schema-tool:update.

Hope you fix it. Tnx! ;)

Originally created by @doctrinebot on GitHub (May 23, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user and: If you use in your MySQL database default values, indexes or string primary key, you get incorrect mapping by mapping generator. For get it - just use in database one or more from listed abilities, generate mapping for that and then try to dump-sql with schema-tool:update. Hope you fix it. Tnx! ;)
admin added the Improvement label 2026-01-22 14:12:06 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 23, 2013):

Comment created by @ocramius:

Marked as minor improvement - thank you for the patch!

@doctrinebot commented on GitHub (May 23, 2013): Comment created by @ocramius: Marked as minor improvement - thank you for the patch!
Author
Owner

@doctrinebot commented on GitHub (May 28, 2013):

Comment created by and:

When it will be merged? Maybe, planned version?

@doctrinebot commented on GitHub (May 28, 2013): Comment created by and: When it will be merged? Maybe, planned version?
Author
Owner

@doctrinebot commented on GitHub (May 28, 2013):

Comment created by @ocramius:

[~and] such a patch requires failing tests before being applied - that's up to whoever picks it up.

@doctrinebot commented on GitHub (May 28, 2013): Comment created by @ocramius: [~and] such a patch requires failing tests before being applied - that's up to whoever picks it up.
Author
Owner

@doctrinebot commented on GitHub (May 28, 2013):

Comment created by and:

So if I add patch with tests - it will be merged? =)

@doctrinebot commented on GitHub (May 28, 2013): Comment created by and: So if I add patch with tests - it will be merged? =)
Author
Owner

@doctrinebot commented on GitHub (May 28, 2013):

Comment created by @ocramius:

Most probably - you can open a pull request against the current ORM master for that

@doctrinebot commented on GitHub (May 28, 2013): Comment created by @ocramius: Most probably - you can open a pull request against the current ORM master for that
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3097