cakephp: Marshaller doesn't use fieldList for validation

When passing a fieldList to one of the marshal methods, the used fields are only used for setting the properties. If you use a field list with and there’s a requirePresence for a property that’s not on list, it would still return an error for that property.

I would expect it to ignore the fields that are not fieldList. Any thoughts on this?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 29 (28 by maintainers)

Commits related to this issue

Most upvoted comments

A graphical representation of how cake3 works in regards to marshalling validation and rules, similar to request-respnse-cycle, would help at pointing where (how) sonething should be done.