Uploaded image for project: 'Integrated'
  1. INTEGRATED-1348

Doctrine tries to persist virtual roles - inject roles to token instead of user

    Details

    • Sprint:
      Team D Sprint 5
    • Team:
      Team D
    • Epic Link:
    • Story Points:
      2
    • Max. hours:
      10
    • Min. hours:
      8
    • Technical tasks:
      Hide

      Inject ROLE_SCOPE_INTEGRATED to the token instead of the user

      Show
      Inject ROLE_SCOPE_INTEGRATED to the token instead of the user

      Description

      Steps

      Add a new workflow with at least one status and choose some groups for the first status

      Exception

      A new entity was found through the relationship 'Integrated\Bundle\UserBundle\Model\User#roles' that was not configured to cascade persist operations for entity: ID:
      Role: ROLE_SCOPE_INTEGRATED
      Hidden: FALSE
      Label:
      Description: . To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade=

      {"persist"}

      ).

      Solution

      Try to inject the ROLE_SCOPE_INTEGRATED to the token instead of the user.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                contact44611 Integrated Marijn
                Code reviewer:
                Michael Jongman (Inactive)
                Developer:
                Ger Jan van den Bosch (Inactive)
                Product owner:
                Marijn Otte
                Client:
                Integrated Marijn
                Refiner:
                Marijn Otte
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  OTM