I am using 1.3.4 and can not get this to work.
Contact model
var $belongsTo = array(
'Profile' => array(
'className' => 'Profile',
'foreignKey' =>
'profile_id',
'counterCache' => true,
)
);
Profile model
var $hasMany = array(
'Contact' => array(
'className' => 'Contact',
'foreignKey' =>
'profile_id',
'dependent' => false),
...
Profile table has contact_count field INT(10)
Any ideas why this will not happen?
Side note ** Eventually the Profile table will have 4 model_count fields, if
I do manage to get 1 working can the 1 table have more than 1 counted model?
Thanks
Dave
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 [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