Solved xf-dev:entity-class-properties generates phpdocs which indicate readonly properties are writeable

This topic has been solved
X

Xon

Guest
Currently the type hint for a XF entity relationship/getter is @property TYPE $name. xf-dev:entity-class-properties should use @property-read TYPE $name when the property is readonly.

For relationships, an XF entity will reject updating a relationship property.
For getters, unless it overshadows an existing column, it will reject updating a getter property.

Continue reading...