//grab the user based on the oldid (which is unique)
$cObject=eZPersistentObject::fetchObject(ezUser::definition(),
null,
array('oldid'=>$oldId),
$asObject=true,
null,
null);
//print ' object' if succeeded
print($cObject);
It returns the following:
Notice: Only variable references should be returned by reference in /opt/guide/www.blaat.com/ezpublish-3.7.0rc2/lib/ezutils/classes/ezsys.php on line 677