Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Autohydrate with no rules #51

Closed
russback opened this issue Jun 13, 2013 · 3 comments
Closed

Autohydrate with no rules #51

russback opened this issue Jun 13, 2013 · 3 comments

Comments

@russback
Copy link

I might be doing something wrong but if I am trying to use autohydrate rather than assign attributes from the input array. This is fine provided the attributes have validation rules but in the instance where a field isn't required, the value from the input array is not assigned and saved. I've tried setting an empty validation rule for these fields but still the same - the only way I can get the data to save is by disabling autohydrate and assigning attributes manually.

@ronnievisser
Copy link

Same issue here

@igorsantos07
Copy link
Member

Just to make sure I understood, creating a non-empty rule for the missing attribute makes it being filled in?

@russback
Copy link
Author

Yes, that's correct. Without that, the field is ignored

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

3 participants