Hi Wayne,
if i do a debug($ids) it shows:
Array
(
[0] => 134
[1] => 140
[2] => 141
[3] => 139
)
which are the id's of the entries in the image-table.
looks ok to me, that's what should be in there.
also from the echo statements in the foreach-loop i can see the
saveField gets called but returns false.
I don't get it, any thoughts?
Lutz
On 24 Okt., 17:28, "Wayne Fay" <[EMAIL PROTECTED]> wrote:
> Looks like you're only getting a SELECT executed. Are you sure the
> $ids variable has proper values in it -- if not, the foreach() won't
> run and saveField() will never get called.
>
> Add some debugging statements to your code and check the debug log
> after executing this method a few times.
>
> Wayne
>
> On 10/24/07, LW <[EMAIL PROTECTED]> wrote:
>
>
>
> > Well, I don't doubt that saveFields works in 1.2
> > I just don't get why it's not working in my code after the update and
> > i thought maybe something changed in the way saveField is used or
> > something like that. I'd appreciate any help on this, what code do you
> > need to see?
>
> > Maybe the response i get might help:
>
> > <!-- 0.1291s --><table class="cake-sql-log"
> > id="cakeSqlLog_1193212061471ef89d060722_06944581" summary="Cake SQL
> > Log" cellspacing="0" border = "0">
> > <caption>1 query took 0 ms</caption>
> > <thead>
> > <tr><th>Nr</th><th>Query</th><th>Error</th><th>Affected</th><th>Num.
> > rows</th><th>Took (ms)</th></tr>
> > </thead>
> > <tbody>
> > <tr><td>1</td><td>SELECT COUNT(*) AS `count` FROM `images` AS
> > `Image` WHERE `Image`.`id` = 134 </td><td></td><td style = "text-
> > align: right">1</td><td style = "text-align: right">1</td><td style =
> > "text-align: right">0</td></tr>
> > </tbody>
> > </table>
>
> > thanks,
> > Lutz
>
> > On 24 Okt., 00:53, "Mariano Iglesias" <[EMAIL PROTECTED]>
> > wrote:
> > > I suggest you post your code, since Model has an awesome test coverage: in
> > > cake/tests/cases/libs/model/model.test.php you can see for example the
> > > function testSaveField() which tests for saveField() calls, and all tests
> > > are succeeding. Therefore saveField() IS WORKING on 1.2.
>
> > > -MI
>
> > > ---------------------------------------------------------------------------
>
> > > Remember, smart coders answer ten questions for every question they ask.
> > > So be smart, be cool, and share your knowledge.
>
> > > BAKE ON!
>
> > > blog:http://www.MarianoIglesias.com.ar
>
> > > -----Mensaje original-----
> > > De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
> > > de LW
> > > Enviado el: Martes, 23 de Octubre de 2007 04:34 p.m.
> > > Para: Cake PHP
> > > Asunto: Re: saveField breaks in new 1.2 release
>
> > > Doesn't work means the db-records are not updated, the saveField data
> > > is not saved. it doesn't give me an error message or any entry in the
> > > cake debug log though.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---