You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Independent of a provided value or a default value the value for created is not transformed resulting in a fatal error when calling the generated getCreated:
Uncaught TypeError: ...::getCreated(): Return value must be of type ?DateTime, string returned
The issue also affects non-transforming filters like trim.
Expected behavior
The transformed filter should be executed and consequently a DateTime object should be returned.
wol-soft
changed the title
Transforming filter for a property inside a Composition inside an array is not executed
Filter for a property inside a Composition inside an array is not executed
Apr 20, 2023
Merged properties of a composition are filled up with the provided values without further validation execution after the single composition branches are validated separately. Consequently,changes applied to the values from filters are missing. The new added method _getModifiedValues sets up a diff with all changed values from the nested composition branch. All modified values are applied to the merged property afterwards so changes from filters are kept.
The getModifiedValues method must be scoped to be added to the correct model. Additionally, it must be added with a unique key per validator as multiple composed validators in a single model might occur.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Independent of a provided value or a default value the value for
created
is not transformed resulting in a fatal error when calling the generatedgetCreated
:The issue also affects non-transforming filters like
trim
.Expected behavior
The transformed filter should be executed and consequently a DateTime object should be returned.
Schema
Version:
0.23.2
The text was updated successfully, but these errors were encountered: