Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Don't rely on setter present when passing default values for newly created items #85

Open
StefanPenndorf opened this issue Jan 22, 2016 · 0 comments

Comments

@StefanPenndorf
Copy link

Currently EntityQuery tries to provide default values for all columns/properties defined in the QueryDefinition when calling constructItem. This fails if there is no setter (e.g. it's a calculated or read-only property).

Solution: Don't try to call a setter/provide a default if none exists. Maybe you'd like to print a warning but since there is no way to disable the warning it might be confusing. One way might be to enable optional default values.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant