code: public function detachBehaviors()
      {
          $this->ensureBehaviors();
          foreach ($this->_behaviors as $name => $behavior) {
              $this->detachBehavior($name);
          }
      }
docs: Detaches all behaviors from the component.