Skip to content

Commit

Permalink
docs: Add warning that readonly properties are not allowed in structs (
Browse files Browse the repository at this point in the history
  • Loading branch information
keulinho authored Jan 7, 2025
1 parent cce4575 commit 607433b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ The entity class itself is a simple key-value object, like a struct, which conta

::: warning
The properties of your entity class have to be at least `protected`, otherwise the data abstraction layer won't be able to set the values.
For the same reason `readonly` properties are not allowed. This holds true not just for `Entity` classes, but for all classes that extend the generic `Struct` class.
:::

```php
Expand Down

0 comments on commit 607433b

Please sign in to comment.