[PR #509] [MERGED] SchemaTool ignoring 'fixed' option #8304

Open
opened 2026-01-22 15:59:19 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/509
Author: @smottt
Created: 11/7/2012
Status: Merged
Merged: 11/7/2012
Merged by: @guilhermeblanco

Base: masterHead: master


📝 Commits (1)

  • cfee331 SchemaTool ignoring 'fixed' option fixed

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/SchemaTool.php (+7 -1)

📄 Description

If the column is set to fixed string length like this:

<?php

/**
 * @ORM\Column(type="string", length=2, options={"fixed" = true})
 */
protected $foo;

The schema tool will not detect that 'fixed' option correctly when generating update SQL.

Fix attached.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/509 **Author:** [@smottt](https://github.com/smottt) **Created:** 11/7/2012 **Status:** ✅ Merged **Merged:** 11/7/2012 **Merged by:** [@guilhermeblanco](https://github.com/guilhermeblanco) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`cfee331`](https://github.com/doctrine/orm/commit/cfee331006c0011ca09250bb7ba4e07c32bb68ad) SchemaTool ignoring 'fixed' option fixed ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/SchemaTool.php` (+7 -1) </details> ### 📄 Description If the column is set to fixed string length like this: ``` php <?php /** * @ORM\Column(type="string", length=2, options={"fixed" = true}) */ protected $foo; ``` The schema tool will not detect that 'fixed' option correctly when generating update SQL. Fix attached. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:59:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8304