You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sfMelodyUserClass->getDbTokens(), the function looks for an array of db_tokens as supplied by the underlying ORM method findByUserId. The request is expecting an array of tokens related to user_id from the token table, but findByUserId only returns a single object.
To solve this, I overrode in sfMelodyPropelOrmAdapter.
public function findByUserId($user_id) {
$c = new Criteria;
$c->add(TokenPeer::USER_ID, $user_id);
return TokenPeer::doSelect($c);
}
If this fixes a bug, I'll make a pull request and fix it and close the bug.
The text was updated successfully, but these errors were encountered:
In sfMelodyUserClass->getDbTokens(), the function looks for an array of db_tokens as supplied by the underlying ORM method findByUserId. The request is expecting an array of tokens related to user_id from the token table, but findByUserId only returns a single object.
To solve this, I overrode in sfMelodyPropelOrmAdapter.
If this fixes a bug, I'll make a pull request and fix it and close the bug.
The text was updated successfully, but these errors were encountered: