[PR #832] [MERGED] Added "readOnly: true" to YAML reference #8763

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/832
Author: @mnapoli
Created: 10/31/2013
Status: Merged
Merged: 12/14/2013
Merged by: @Ocramius

Base: masterHead: patch-4


📝 Commits (1)

  • f3f9fe9 Added "readOnly: true" to YAML reference

📊 Changes

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

View changed files

📝 docs/en/reference/yaml-mapping.rst (+1 -0)

📄 Description

The readOnly configuration is documented nowhere except in the annotations reference.

I added it to the example, for a lack of a better place. But at least it will be documented somewhere.

Can you also confirm that this is correct? I'm starting to use it, and I can't find a way to have doctrine validate it is really working. Even with the metadata validation tool, it won't raise an error if I put an invalid entry (readOnlyFOOBAR: true) or an invalid value (readOnly: FOOBAR), so I'm kind of blind here.


🔄 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/832 **Author:** [@mnapoli](https://github.com/mnapoli) **Created:** 10/31/2013 **Status:** ✅ Merged **Merged:** 12/14/2013 **Merged by:** [@Ocramius](https://github.com/Ocramius) **Base:** `master` ← **Head:** `patch-4` --- ### 📝 Commits (1) - [`f3f9fe9`](https://github.com/doctrine/orm/commit/f3f9fe9daa1025af09ce7641df4968f155bd595a) Added "readOnly: true" to YAML reference ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/en/reference/yaml-mapping.rst` (+1 -0) </details> ### 📄 Description The readOnly configuration is documented nowhere except in the annotations reference. I added it to the example, for a lack of a better place. But at least it will be documented somewhere. Can you also confirm that this is correct? I'm starting to use it, and I can't find a way to have doctrine validate it is really working. Even with the metadata validation tool, it won't raise an error if I put an invalid entry (`readOnlyFOOBAR: true`) or an invalid value (`readOnly: FOOBAR`), so I'm kind of blind here. --- <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:01:37 +01:00
admin closed this issue 2026-01-22 16:01:38 +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#8763