Skip to content

Commit

Permalink
Merge pull request #70 from jorisvaesen/cake4-immutable-setter-fix
Browse files Browse the repository at this point in the history
Cake4 immutable setter fix
  • Loading branch information
dereuromark authored Apr 18, 2024
2 parents 7453e6d + bd8a2d5 commit b3a8180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/Dto/element/methods.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% else %}
{{ element('method_set', field) }}
{% endif %}
{% if field.nullable %}
{% if field.nullable and not immutable %}
{{ element('method_set_or_fail', field) }}
{% endif %}
{{ element('method_get', field) }}
Expand Down

0 comments on commit b3a8180

Please sign in to comment.