Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Fix #114 - validate collection #118

Merged
merged 5 commits into from
Aug 18, 2016
Merged

Fix #114 - validate collection #118

merged 5 commits into from
Aug 18, 2016

Conversation

michalbundyra
Copy link
Member

@michalbundyra michalbundyra commented Aug 18, 2016

So far only test implemented as reported in #114.
I had a look on it and it seems to be a quite complex...

Edited:
errorMessage is now cleared (to null) before validation the Input only when it is an array.
Why? The setter method setErrorMessage accept any type, but there is casting to (string).
Method prepareRequiredValidationFailureMessage called in isValid sets errorMessage to an array, and in this case we have to clear it before each validation.

Probably it needs more refactor in future. Because current complexity of these validation there is terrible!

@weierophinney weierophinney changed the title [WIP] Fix #114 - validate collection Fix #114 - validate collection Aug 18, 2016
@weierophinney weierophinney added this to the 2.7.3 milestone Aug 18, 2016
@weierophinney weierophinney self-assigned this Aug 18, 2016
@weierophinney weierophinney merged commit b909ec6 into zendframework:master Aug 18, 2016
weierophinney added a commit that referenced this pull request Aug 18, 2016
weierophinney added a commit that referenced this pull request Aug 18, 2016
weierophinney added a commit that referenced this pull request Aug 18, 2016
weierophinney added a commit that referenced this pull request Aug 18, 2016
Forward port #118

Conflicts:
	CHANGELOG.md
@michalbundyra michalbundyra deleted the fix/114 branch August 18, 2016 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants