Add a record and update another table

Hi everyone,

I would like to know how to add a record to one specific table and, after doing that, update another table's field, but I need to do that using the same action.

Thanks

Asked by Ranilson, on 11/3/10

1 Answer

you can just use $this->Model->RelatedModel->updateAll() if its related and if not then use

$this->loadModel('ModelName');

$this->ModelName->updateAll();

Answered by dogmatic69on 11/3/10

Thankyou... It's done now!

Ranilson - on 11/3/10

<< comments | comments >>
<< previous next >>

Tagged with

Rating

0

Viewed

222 times

Last Activity

on 11/3/10