From f3f9fe9daa1025af09ce7641df4968f155bd595a Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Thu, 31 Oct 2013 10:50:44 +0100 Subject: [PATCH] Added "readOnly: true" to YAML reference 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. --- docs/en/reference/yaml-mapping.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/reference/yaml-mapping.rst b/docs/en/reference/yaml-mapping.rst index 1d7f8b17a..eb89c2e66 100644 --- a/docs/en/reference/yaml-mapping.rst +++ b/docs/en/reference/yaml-mapping.rst @@ -73,6 +73,7 @@ of several common elements: Doctrine\Tests\ORM\Mapping\User: type: entity table: cms_users + readOnly: true indexes: name_index: columns: [ name ]