DDC-2594: schema-tools:update fails to sync options={"default" = 0} to the database #3259

Closed
opened 2026-01-22 14:16:50 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 6, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user naroga:

Specifying DEFAULT 0 on my database will cause doctrine to throw an out-of-sync warning when validating my mappings (if the options={"default"=0} isn't defined), but the inverse is not true. Doctrine will say my entity is synced, even if I specified options={"default"=0} and my database doesn't have a default value.

Originally created by @doctrinebot on GitHub (Aug 6, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user naroga: Specifying DEFAULT 0 on my database will cause doctrine to throw an out-of-sync warning when validating my mappings (if the options={"default"=0} isn't defined), but the inverse is not true. Doctrine will say my entity is synced, even if I specified options={"default"=0} and my database doesn't have a default value.
admin added the Won't Fix label 2026-01-22 14:16:50 +01:00
admin closed this issue 2026-01-22 14:16:51 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 6, 2013):

Comment created by @ocramius:

That's normal, advanced "options" are not taken into account when computing changes in the schema (for now)

@doctrinebot commented on GitHub (Aug 6, 2013): Comment created by @ocramius: That's normal, advanced "options" are not taken into account when computing changes in the schema (for now)
Author
Owner

@malukenho commented on GitHub (Jan 12, 2017):

@Ocramius can be closed as per your previous answer?

@malukenho commented on GitHub (Jan 12, 2017): @Ocramius can be closed as per your previous answer?
Author
Owner

@lcobucci commented on GitHub (Jan 12, 2017):

Closing as won't fix

@lcobucci commented on GitHub (Jan 12, 2017): Closing as `won't fix`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3259