Skip to content

Commit

Permalink
Merge pull request #2610 from ankr/3.0-fix-countercache-settings
Browse files Browse the repository at this point in the history
3.0 - CounterCache - Rename _settings to _config
  • Loading branch information
markstory committed Jan 6, 2014
2 parents 8b64822 + f7f303d commit 211d280
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cake/Model/Behavior/CounterCacheBehavior.php
Expand Up @@ -92,10 +92,10 @@ class CounterCacheBehavior extends Behavior {
* Constructor
*
* @param Table $table The table this behavior is attached to.
* @param array $settings The settings for this behavior.
* @param array $config The config for this behavior.
*/
public function __construct(Table $table, array $settings = []) {
parent::__construct($table, $settings);
public function __construct(Table $table, array $config = []) {
parent::__construct($table, $config);
$this->_table = $table;
}

Expand Down Expand Up @@ -133,7 +133,7 @@ public function afterDelete(Event $event, Entity $entity) {
* @return void
*/
protected function _processAssociations(Event $event, Entity $entity) {
foreach ($this->_settings as $assoc => $settings) {
foreach ($this->_config as $assoc => $settings) {
$assoc = $this->_table->association($assoc);
$this->_processAssociation($event, $entity, $assoc, $settings);
}
Expand Down

0 comments on commit 211d280

Please sign in to comment.