Hi everyone,
I have to upgrade a project form symfony 2.3 to 3.4.* and because of this
sonata from 2.* to 4.*
Everything seems to work fine so far, except the group administration.
Everytime I tried to edit a group, I've got this error:
request.CRITICAL: Uncaught PHP Exception
Symfony\Component\Debug\Exception\FatalThrowableError: "Type error:
Argument 1 passed to
Sonata\UserBundle\Form\Type\SecurityRolesType::__construct() must be an
instance of Sonata\UserBundle\Security\EditableRolesBuilder, instance of
Acme\CmsBundle\Security\EditableRolesBuilder given, called in
/var/www/html/var/cache/prod/ContainerH0r1u23/getSonata_User_Form_Type_SecurityRolesService.php
on line 8" at
/var/www/html/vendor/sonata-project/user-bundle/src/Form/Type/SecurityRolesType.php
line 39 {"exception":"[object]
(Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Type
error: Argument 1 passed to
Sonata\\UserBundle\\Form\\Type\\SecurityRolesType::__construct() must be an
instance of Sonata\\UserBundle\\Security\\EditableRolesBuilder, instance of
Acme\\CmsBundle\\Security\\EditableRolesBuilder given, called in
/var/www/html/var/cache/prod/ContainerH0r1u23/getSonata_User_Form_Type_SecurityRolesService.php
on line 8 at
/var/www/html/vendor/sonata-project/user-bundle/src/Form/Type/SecurityRolesType.php:39)"}
[]
If I understand the application (no documentation available), there is a
derived class for SecurityRolesType and EditableRolesBuilder, but the error
shows, that this classes are not used. How can I fix that problem?
Thanks
ion
--
You received this message because you are subscribed to the Google Groups
"sonata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sonata-users.
For more options, visit https://groups.google.com/d/optout.