Mass-assignment in initializer: default values are not preset
der-flo opened this issue · 4 comments
der-flo commented
See my small code sample:
<script src="http://gist.github.com/563547.js"> </script>store
is not filled with the default value when entry_1
is assigned. I think the plugin ignores this case. Is a quick fix possible? Thanks!
der-flo commented
Any comments on this? Are there plans to fix this issue?
Thanks!
FooBarWidget commented
Sorry for the wait.
You're experiencing this issue because default values are assigned after the entries in the constructors are assigned, not before. This is the intended behavior. You must update your code to take care of this.
der-flo commented
Too bad, ok, I already went with a custom solution. Thanks for your answer.
svenwin commented
This small sample initializes without defaults and sets explicitly after initialization