fix sf4 error with PickPersonType (error in commit a92686d1)

This commit is contained in:
2020-07-27 17:24:01 +02:00
parent 43dedaf96b
commit 9952a885ed
5 changed files with 19 additions and 4 deletions

View File

@@ -41,6 +41,12 @@ use Chill\CustomFieldsBundle\Entity\CustomField;
*/
class PersonListWidget implements WidgetInterface
{
/**
* Repository for persons
*
* @var EntityRepository
*/
protected $personRepository;
/**
* The entity manager
@@ -69,6 +75,7 @@ class PersonListWidget implements WidgetInterface
protected $user;
public function __construct(
EntityRepository $personRepostory,
EntityManager $em,
AuthorizationHelper $authorizationHelper,
TokenStorage $tokenStorage