Counter cache column not updated by fixtures load


#1

Hi,

I’ve added a counter cache column to a model. When I load my models
through fixtures, it doesn’t seem to affect the counter.

regards,
C.


#2

On May 25, 9:25 am, coriordan removed_email_address@domain.invalid wrote:

Hi,

I’ve added a counter cache column to a model. When I load my models
through fixtures, it doesn’t seem to affect the counter.

That’s not handled magically for you (mainly because the counter cache
only gets updated via callbacks whereas fixtures are just plopped
straight in the database).

Fred