On 2 mayo, 20:05, robechar <[EMAIL PROTECTED]> wrote:
> The code you have should work fine, I would turn your DEBUG level up
> to '2' to see what queries are being run to cause this. Usually these
> issues are caused by something you customized in your model class,
> such as in a beforeSave() function that can cause strange behavior
>
> On May 2, 5:30 am, Dan <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > At a loss on this one, I'm doing the following and the save is
> > successfull but it's creating 2 extra 'blank' rows each time in the
> > table
>
> > $this->Modelname->id = $id;
> > $this->Modelname->saveField('fieldname','data');
>
> > saves fine, but then creates 2 blank items in the table, each a few
> > seconds after each other?
>
> > Help!?
try this:
Set debug to 2 and put $this->log($this->here);
If your sql log shows an UPDATE and 2 INSERTS the problem will be in
your own code. If the sql log shows only the UPDATE the app/tmp/logs/
*.log file /may/ prompt one or two thoughts such as:
1) verify that $id is a valid id in your code before continuing.
2) fix that broken css/js/redirect link which is calling the current
method with no valid parameters.
Just guessing of course,
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---