I have a controller that works like this:

public function calcolo($param)
{
   $this->function1(...);
   $this->function2(...);
   .....
   $this->function3(...);

   $this->render();
}

private function function3(...)
{
                $tableClass = &new TableName;
                $actmodel=$tableClass ->find("`id`='$id'", null, null, 0);

                $tosave=array();
                $tosave['TableName']=$actmodel['TableName'];
                $tosave['TableName']['value']+=$DMN;
                $tableClass ->save($tosave);
}



What happen is that the function3 not only does a regular update, but
add 2 empty lines in the DB table: one at the end of the function, one
when i change controller.

I tried to use different type of saving data: i tried saveField, i
tried save without passing by a temporary array (like $tosave in the
example), i tried using che model create() function... nothing changed.

I put debug level 2 and see the query and save action is correctly
done. I've searched through the queries and i cannot see any insert
query, so i cannot understand who insert the two black lines.

Anyone has an idea of what has happened? Thanks in advance


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to