public function detachBehaviors() { $this->ensureBehaviors(); foreach ($this->_behaviors as $name => $behavior) { $this->detachBehavior($name); } }