Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed saving set of groups related to user (while creating/updating u…

…sers).
  • Loading branch information...
commit ed10f43ab163aefb9fbcdc8197ca2c88d6c205c6 1 parent e2cdcbc
Sergey Falinsky authored June 28, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  Admin/Model/UserAdmin.php
2  Admin/Model/UserAdmin.php
@@ -111,7 +111,7 @@ protected function configureFormFields(FormMapper $formMapper)
111 111
                 ->add('plainPassword', 'text', array('required' => false))
112 112
             ->end()
113 113
             ->with('Groups')
114  
-                ->add('groups', 'sonata_type_model', array('required' => false))
  114
+                ->add('groups', 'sonata_type_model', array('required' => false, 'by_reference' => false))
115 115
             ->end()
116 116
             ->with('Profile')
117 117
                 ->add('dateOfBirth', 'date', array('required' => false))

0 notes on commit ed10f43

Please sign in to comment.
Something went wrong with that request. Please try again.