It is also needed in constructor to determine if the behavior should be
loaded. Alternative would be always load it.
Op 24 mei 2013 19:51 schreef "José Lorenzo Rodríguez" <
notifications@github.com> het volgende:

> In lib/Cake/Model/Model.php:
>
> > -						array($this->{$parent}->escapeField() => $keys[$foreignKey])
> > -					);
> > -				}
> > -			}
> > -		}
> > -	}
> > -
> > -/**
> > - * Helper method for `Model::updateCounterCache()`. Checks the fields to be updated for
> > - *
> > - * @param array $data The fields of the record that will be updated
> > - * @return array Returns updated foreign key values, along with an 'old' key containing the old
> > - *     values, or empty if no foreign keys are updated.
> > - */
> > -	protected function _prepareUpdateFields($data) {
> > +	public function counterCacheFields() {
>
> This function would not belong here if you extract all the other logic
> into a behavior
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cakephp/cakephp/pull/1299/files#r4385916>
> .
>