Bake interactive console for 'Model' does not show validation rule 'uuid' #77

Merged
merged 3 commits into from May 19, 2011

Projects

None yet

2 participants

tPl0ch commented May 16, 2011

When I used the interactive bake console to bake a model, I realized that the uuid validation message is missing. So I investigated this and realized that when the validation method index is starting at 1, you need to add one more index for the 'Do no validation rule', hence leaving the last validation rule (here: 'uuid') out.

Commit message:
Fixed wrong validation init in Model bake task when having index starting at 1.
Added guess 'uuid' for type 'string' and length 36.
Updated missing calls to assertEqual() testFieldValidationGuessing().
Added test for uuid guessing.
Fixes #1710.

Thomas Ploch added some commits May 16, 2011
Thomas Ploch Fixed wrong validation init in Model bake task when having index star…
…ting at 1.

Added guess 'uuid' for type 'string' and length 36.
Updated missing calls to assertEqual() testFieldValidationGuessing().
Added test for uuid guessing.
8ef7016
Thomas Ploch Fixed wrong passing of $expected and $results in model task test. bf37054
Thomas Ploch Merge branch '1.3' of https://github.com/cakephp/cakephp into 1.3-bake bf72166
@markstory markstory merged commit bf72166 into cakephp:1.3 May 19, 2011
Owner

Thanks for the patches, I've merged them in,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment