orm
orm copied to clipboard
[Cycle 2.0][php 8.1] readonly property in entity
Hi, Is it possible to use readonly
properties in entity? I have some error with it
Right now readonly properties aren't supported from the box.
But it is possible:
- to write a custom typecaster that will ignore RO properties
- to use the promise-mapper with a hydrator that supports RO properties
Any update when this will be available out of the box? As it is a major use case in PHP 8.1 and 8.2.
There are no updates yet. Right now i am working on cycle/database