1
0
mirror of synced 2025-03-03 11:23:21 +03:00

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.
This commit is contained in:
Matthieu Napoli 2013-10-31 10:50:44 +01:00
parent 514dd4e852
commit f3f9fe9daa

View File

@ -73,6 +73,7 @@ of several common elements:
Doctrine\Tests\ORM\Mapping\User: Doctrine\Tests\ORM\Mapping\User:
type: entity type: entity
table: cms_users table: cms_users
readOnly: true
indexes: indexes:
name_index: name_index:
columns: [ name ] columns: [ name ]