public function afterDelete(Event $event, EntityInterface $entity, $options)
    {
        if (isset($options['ignoreCounterCache']) && $options['ignoreCounterCache'] === true) {
            return;
        }

        $this->_processAssociations($event, $entity);
    }
public function afterDelete(Event $event, EntityInterface $entity, $options)
    {
        if (isset($options['ignoreCounterCache']) && $options['ignoreCounterCache'] === true) {
            return;
        }

        $this->_processAssociations($event, $entity);
    }
public function afterDelete ( Event $ event , EntityInterface $ entity , $ options ) { if ( isset ( $ options [ 'ignoreCounterCache' ] ) && $ options [ 'ignoreCounterCache' ] === true ) { return ; } $ this -> _processAssociations ( $ event , $ entity ) ; }
afterDelete callback.

Makes sure to update counter cache when a record is deleted.

@param \Cake\Event\Event $event The afterDelete event that was fired.
@param \Cake\Datasource\EntityInterface $entity The entity that was deleted.
@param \ArrayObject $options The options for the query
@return void
afterDelete callback .