[eluser]matthewwithanm[/eluser]
Has anybody ever successfully used set_value with DMZ?
From what I understand, CI has some issues with set_value and form_validation. The long and short of it is that, if you are using form_validation and want to use set_value, you have to set rules for your fields. I'm not sure if the CI guys consider this a bug or a feature, but it is the current behavior.
Datamapper triggers the issue by loading form_validation, but doesn't set its validation rules using set_rules.
This can be addressed by setting empty rules with form_validation->set_rules (for example, after the $label var is set in validate()) and calling form_validation->run() (e.g. at the end of the validate() method), though I'm not sure if this is the best approach.
I can certainly see an argument for this being a CI bug. However, it seems like Datamapper should at least work with the same restrictions that the framework establishes—namely, that a rule be set.