PHRAS-2172_parade-saml-err500_MASTER (#2695)

fix : the user application was updated (=created) after the check
add : "find()" on user repo (type hinted) to allow code sniff, completion etc.
This commit is contained in:
jygaulier
2018-07-26 16:34:20 +02:00
committed by GitHub
parent db840292fe
commit e7863122d0
2 changed files with 33 additions and 6 deletions

View File

@@ -22,6 +22,18 @@ use Alchemy\Phrasea\Model\Entities\User;
*/
class UserRepository extends EntityRepository
{
/**
* Finds an User by its primary key / identifier.
*
* @inheritdoc
*
* @return User|null
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return parent::find($id, $lockMode, $lockVersion);
}
/**
* Finds admins.
*