06.15
php
AD7six
Note
AD7six did not leave a note
AD7six did not leave a note
- <?php
- class Rating extends AppModel {
- 'User',
- 'counterCache' => true,
- 'avgCache' => true,
- ),
- 'counterCache' => true,
- 'avgCache' => true,
- )
- );
- )
- );
- parent::updateCounterCache($keys);
- $keys = $this->data[$this->alias];
- }
- foreach ($this->belongsTo as $parent => $assoc) {
- if ($assoc['avgCache'] === true) {
- $assoc['avgCache'] = Inflector::underscore($this->alias) . '_avg';
- }
- if ($this->{$parent}->hasField($assoc['avgCache'])) {
- }
- $fields = 'AVG(rate) AS rate';
- $recursive = -1;
- $this->{$parent}->updateAll(
- );
- }
- }
- }
- }
- }
- ?>
Parsed in 0.113 seconds, using GeSHi 1.0.7.14