public function cascadeCallbacks($cascadeCallbacks = null)
    {
        deprecationWarning(
            get_called_class() . '::cascadeCallbacks() is deprecated. ' .
            'Use setCascadeCallbacks()/getCascadeCallbacks() instead.'
        );
        if ($cascadeCallbacks !== null) {
            $this->setCascadeCallbacks($cascadeCallbacks);
        }

        return $this->getCascadeCallbacks();
    }
public function cascadeCallbacks($cascadeCallbacks = null)
    {
        deprecationWarning(
            get_called_class() . '::cascadeCallbacks() is deprecated. ' .
            'Use setCascadeCallbacks()/getCascadeCallbacks() instead.'
        );
        if ($cascadeCallbacks !== null) {
            $this->setCascadeCallbacks($cascadeCallbacks);
        }

        return $this->getCascadeCallbacks();
    }
public function cascadeCallbacks ( $ cascadeCallbacks = null ) { deprecationWarning ( get_called_class ( ) . '::cascadeCallbacks() is deprecated. ' . 'Use setCascadeCallbacks()/getCascadeCallbacks() instead.' ) ; if ( $ cascadeCallbacks !== null ) { $ this -> setCascadeCallbacks ( $ cascadeCallbacks ) ; } return $ this -> getCascadeCallbacks ( ) ; }
Sets whether or not cascaded deletes should also fire callbacks. If no
arguments are passed, the current configured value is returned

@deprecated 3.4.0 Use setCascadeCallbacks()/getCascadeCallbacks() instead.
@param bool|null $cascadeCallbacks cascade callbacks switch value
@return bool
Sets whether or not cascaded deletes should also fire callbacks . If no arguments are passed the current configured value is returned