A Doctrine entity can have the flag readOnly
.
How should the flag readOnly
be used?
/** @Entity(readOnly) */ <-- like this?
/** @Entity(readOnly=true) */ <-- or like this?
class User
{
//...
}
According to this answer and this issue, the latter is the way to go:
/** @Entity(readOnly=true) */
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With