No, it is not a bug! It is clearly described in the CakePHP book.

'rule' => 'ruleName', // or: array('ruleName', 'param1', 'param2' ...)

Second format is the one you are concerned about I assume, but it is
documented.

Version 1.3: http://book.cakephp.org/view/1145/One-Rule-Per-Field
Version 1.2: http://book.cakephp.org/view/127/One-Rule-Per-Field

Enjoy,
   John

On May 7, 11:21 pm, Jonathan <[email protected]> wrote:
> I've gotten very good about using '=>' instinctively to link my key/
> value pairs in all of my arrays, and that prompted an error today
> because, in the validation array the rule for minLength expects key,
> value, not key => value.
>
> Is this a bug?
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to