orm icon indicating copy to clipboard operation
orm copied to clipboard

[Cycle 2.0][php 8.1] readonly property in entity

Open sergey-telpuk opened this issue 3 years ago • 3 comments

Hi, Is it possible to use readonly properties in entity? I have some error with it

sergey-telpuk avatar Dec 30 '21 18:12 sergey-telpuk

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

roxblnfk avatar Dec 30 '21 21:12 roxblnfk

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.

maxwagner-dev avatar Sep 27 '22 14:09 maxwagner-dev

There are no updates yet. Right now i am working on cycle/database

roxblnfk avatar Sep 27 '22 15:09 roxblnfk