Doctrine的实体可以有标志readOnly。 如何使用readOnly标志? /** @Entity(readOnly) */ <-- like this? /** @Entity(readOnly=true) */ <-- or like this? class User { //... }