Multi-dimension support for Strict Models #46
Labels
No labels
bug
confirmed
critical
database
discussion
documentation
email-support
enhancement
feature
suggestion
support
warlock
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-mvc-old#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Strict models are only a single dimension. This means that if a field is of type 'array' then it's members will not be subject to strict model rules (ie: no data type conversion).
How I see this working is if the 'type' of a field is 'array' then it can have a new argument called, say, 'fields' that will have a sub-field definition. These definitions can be infinitely deep and internally will trigger the creation of a strict model in place of the array.
So to get this to work, I'll need a way to inject a field definition into strict model which will in turn not call the 'init()' method.
Support was added in commit:6296c8f9
Status changed to closed