[PR #984] [MERGED] Use boolean values for 'unique' attribute #8998

Closed
opened 2026-01-22 16:02:42 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/984
Author: @holtkamp
Created: 3/20/2014
Status: Merged
Merged: 3/23/2014
Merged by: @beberlei

Base: masterHead: patch-1


📝 Commits (2)

  • ef4e73f Use boolean values for 'unique' attribute
  • 6e651b1 Added test to ensure boolean metadata is properly exported/serialized to XML

📊 Changes

2 files changed (+22 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php (+1 -1)
📝 tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php (+21 -0)

📄 Description

As defined in: https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L294

Same as 'nullable' attribute.

It was being exported as a "1" for TRUE and "0" for false


🔄 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/984 **Author:** [@holtkamp](https://github.com/holtkamp) **Created:** 3/20/2014 **Status:** ✅ Merged **Merged:** 3/23/2014 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`ef4e73f`](https://github.com/doctrine/orm/commit/ef4e73f9877535e1af08800e180e3ec6b7e30fa0) Use boolean values for 'unique' attribute - [`6e651b1`](https://github.com/doctrine/orm/commit/6e651b13c994db70c6e3fc8fafb4c461cc7d8926) Added test to ensure boolean metadata is properly exported/serialized to XML ### 📊 Changes **2 files changed** (+22 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php` (+1 -1) 📝 `tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php` (+21 -0) </details> ### 📄 Description As defined in: https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L294 Same as 'nullable' attribute. It was being exported as a "1" for TRUE and "0" for false --- <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 16:02:42 +01:00
admin closed this issue 2026-01-22 16:02:42 +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#8998