sfUser is just a handler to store information in the user session and
check permission. This object is not directly related with any kind of
database object.
Now, $sf_user always refers to 'myUser'. The "crap" you see from var
dump is all related objects : sfContext, sfRequest and their are
$sf_user is a user, so
if($sf_user->getId() == $user->getId)
{
print "same user";
}
else
{
print "not the same user";
}
And yes, while I love Symfony, the amount of crap you get in var_dump
on symfony objects are ridiculous.
James
On May 21, 2008, at 8:35 PM, Daevid Vincent