Impossible to update Entity
firewalls: main: pattern: ^/ form_login: provider: fos_userbundle csrf_provider: security.csrf.token_manager # Use form.csrf_provider instead for Symfony <2.4 logout: true anonymous: true dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: falseaccess_control: - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/admin/, role: ROLE_ADMIN }
The error is not related to you trying to update your entity but pointing to an issue with the security.yml
configuration file. In this case, the indentation of your access_control
section is incorrect and should be at the same indent level as the firewalls
keywords. YAML files are indent sensitive so this should sort your issue.
Try to indent access_control section at the same level with firewalls