Monday, November 1, 2010

RE: Anything wrong with this?

At this point in the night I really do not care anymore....lol.....all day
on 1 simple thing.

Im simply trying to get the counterCache working and going thru my models
checking if there is something wrong so I thought maybe because I broke
convention with my no user_id in my Profile table,
maybe that was why the counterCache was not working. So I went ahead and
just added the user_id to the Profile table (thankfully im just testing the
site so I only have 10 dummy user_id fields to edit)

But still no counterCache....

So her I sit frustrated.

Does anyone have any ideas why counterCache will not work for me? Do I need
to manually call it in the model afterSave(); pass an ID of anykind? Just no
clue why something that seems so simple in the cookbook is dead set against
me tonight.

Thanks all,

Dave

-----Original Message-----
From: Miles J [mailto:mileswjohnson@gmail.com]
Sent: November-01-10 11:40 PM
To: CakePHP
Subject: Re: Anything wrong with this?

Just for convenience sake.

I do the same thing for a lot of my tables and in most cases the
numbers get out of sync. Either a profile fails to create, or creates
dupes, or something terrible happens. Its best to just keep inserting
rows (and delete broken ones) then to try and fix the table to sync.

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: