Open daogrady opened 7 months ago
Hi @daogrady,
This actually is causing issues when registering handlers, if you register the handler with the plural of the drafts it's typed as an object. At runtime the value is not an object but an array.
Cheers, Geert-Jan
Pull request #192 created to resolve this issue. (ran unit tests & did the same manual change in my running project to validate)
Currently, both the singular and the plural form of entities have a reference to
.drafts
. This makes sense as they point to the same CSN entity during runtime and should be treated the same. So:This leads to confusion when the type should not actually matter:
Find out if there is a compelling argument against
and if not implement this behaviour.