Saving relations in a transaction (was: Saving empty fields to the DB.)

2007-04-23 Thread Leandro Lucarella
Leandro Lucarella, el 20 de abril a las 23:58 me escribiste: > > GreyCells, el 20 de abril a las 15:25 me escribiste: > > > > $this->Person->set('name', null); before saving. > > 2 comments: > 1) The table is really much bigger than a single "name" field (~60 >fields). Even when I can do th

Re: Saving empty fields to the DB.

2007-04-20 Thread Leandro Lucarella
GreyCells, el 20 de abril a las 15:25 me escribiste: > > $this->Person->set('name', null); before saving. 2 comments: 1) The table is really much bigger than a single "name" field (~60 fields). Even when I can do the set()-thing programatically with a foreach over the $this->data, I find i

Re: Saving empty fields to the DB.

2007-04-20 Thread GreyCells
$this->Person->set('name', null); before saving. ~GreyCells On Apr 20, 8:25 pm, Leandro Lucarella <[EMAIL PROTECTED]> wrote: > Hi! I'm having a problem when editing data. Let's say I have a persons > table, with id and name columns. I create a new row (id, 'Peter') using a > form, all great ther

Saving empty fields to the DB.

2007-04-20 Thread Leandro Lucarella
Hi! I'm having a problem when editing data. Let's say I have a persons table, with id and name columns. I create a new row (id, 'Peter') using a form, all great there. Then I edit the row, erasing the form field for 'name'. My controller's $this->data looks like this: array(1) { ["Person"]=>