Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename _settings to _config

  • Loading branch information...
commit f7f303d1a7335b53e44706d1eb090d328168ff46 1 parent 8b64822
@ankr ankr authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 Cake/Model/Behavior/CounterCacheBehavior.php
View
8 Cake/Model/Behavior/CounterCacheBehavior.php
@@ -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;
}
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.