Your second option sounds correct for me! No need to mess around with
PHP when the database and a "little" script can handle it! At least I
would use SQL for it :)
Enjoy,
   John

On Mar 15, 8:16 pm, Brenda <rld0...@gmail.com> wrote:
> I'm upgrading an existing model to include counters for some of the
> hasMany relationships. They all start out as zero, even though there
> are many hasMany records; each record gets updated once a save/delete
> occurs.
>
> Is there any way to tell Cake to go through and update all the
> counters, so I can get correct initial values? Or should I just write
> a SQL query to do it?
>
> thanks...

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to