code: public function detach($blnKeepClone=true)
  	{
  		$registry = Registry::getInstance();
  
  		if (!$registry->isRegistered($this))
  		{
  			return;
  		}
  
  		$registry->unregister($this);
  
  		if ($blnKeepClone)
  		{
  			$this->cloneOriginal()->attach();
  		}
  	}
docs: Detach the model from the registry
  
  @param boolean $blnKeepClone Keeps a clone of the model in the registry