chok/sfPropelOAuthPlugin — pull request #2 by madesst (2012-02-07 23:39:02+00:00)
Title: Problem in sfMelodyUser with sfPropelOAuthPlugin

::sfMelodyUser::

protected function getDbTokens()
{
$tokens = array();

if($this->isAuthenticated())
{
$db_tokens = $this->getOrmAdapter('Token')->findByUserId($this->getGuardUser()->getId());

foreach($db_tokens as $token)
{
$tokens[$token->getStatus()][$token->getName()] = $token;
}

}

return $tokens;
}

Problem in:

$db_tokens = $this->getOrmAdapter('Token')->findByUserId($this->getGuardUser()->getId());

foreach($db_tokens as $token)

You use findByUserId which returns doSelectOne. Actualy you trying to cycle in foreach one object, not array.
There is small fix for this. This bug takes about 2 hours for debug.

Sorry for my english.