On Thu, Sep 10, 2009 at 5:09 AM, Dr. Loboto wrote:
>
> Cake's "isUnique" method handles create & update situations well (so
> you do not need "on" => "create" at all). Are you sure that you make
> update? It is the common error - do not provide ID to model when want
> update and it makes create i
Cake's "isUnique" method handles create & update situations well (so
you do not need "on" => "create" at all). Are you sure that you make
update? It is the common error - do not provide ID to model when want
update and it makes create instead. And do not "respect" the key "on"
of course because it
On Wed, Sep 9, 2009 at 1:42 PM, brian wrote:
> I have the following validatio rules:
>
> 'email' => array(
> 'valid' => array(
> 'rule' => 'email',
> 'required' => true,
> 'allowEmpty' => false,
> 'message' => 'You must provide an
I have the following validatio rules:
'email' => array(
'valid' => array(
'rule' => 'email',
'required' => true,
'allowEmpty' => false,
'message' => 'You must provide an email address.'
),
'duplicate' => array