See the guide: http://book.cakephp.org/view/1031/Saving-Your-Data

save(array $data = null, boolean $validate = true, array $fieldList = array())

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 5 Oct 2010, at 14:32, james wrote:

> Following on from this - it was a validation error since i was only
> updating half of the fields the validation rules were not being
> satisfied. So as part of that does anyone know how to disable the
> validation on a model before a save?
> 
> On 5 Oct, 14:15, james <[email protected]> wrote:
>> I'm trying to run a save on certain fields from my model and for some
>> reason it isnt working -
>> 
>> similarly to an edit im calling
>> 
>> $this->Host->save($this->data)
>> 
>> and the array in $this->data looks like
>> 
>> Array
>> (
>>     [Host] => Array
>>         (
>>             [web] => 25
>>             [prev_cost_of_sale] =>
>>             [extras] =>
>>             [price_A4s] =>
>>             [previous_price_A4s] =>
>>             [previous_adverts] =>
>>             [previous_appts] =>
>>         )
>> 
>> )
>> 
>> can anyone see what im doing wrong?
>> 
>> thanks
> 
> 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

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