/**
* Jackalope specific hack to drop the state of the current session
*
* Removes all cached objects, planned changes etc without making the
* objects aware of it. Was done as a cheap replacement for refresh
* in testing.
*
* @deprecated: this will screw up major, as the user of the api can still have references to nodes. USE refresh instead!
*/
public function clear()
{
trigger_error('Use Session::refresh instead, this method is extremely unsafe', E_USER_DEPRECATED);
$this->objectManager->clear();
}