Skip to content

Commit

Permalink
Fix roles doctrine type mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Mar 4, 2024
1 parent 0f1833f commit fbe6b24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/config/doctrine-mapping/Group.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<mapped-superclass name="Nucleos\UserBundle\Model\Group">
<field name="name" column="name" type="string" length="180" unique="true"/>
<field name="roles" column="roles" type="array"/>
<field name="roles" column="roles" type="json"/>
</mapped-superclass>
</doctrine-mapping>
2 changes: 1 addition & 1 deletion src/Resources/config/doctrine-mapping/User.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<field name="passwordRequestedAt" column="password_requested_at" type="datetime" nullable="true"/>
<field name="locale" type="string" column="locale" length="8" nullable="true"/>
<field name="timezone" type="string" column="timezone" length="64" nullable="true"/>
<field name="roles" column="roles" type="array"/>
<field name="roles" column="roles" type="json"/>
</mapped-superclass>
</doctrine-mapping>

0 comments on commit fbe6b24

Please sign in to comment.