That error can still happen even if it's only an integer though. If it doesn't contain a default value in the database and/or it has a NOT NULL constraint, then when you do an insert without assigning it a value, the insert will fail. It looks you're assigning it a value properly. So the former does seem doubtful.
What value does $global_user->getId() have after you call that first persist()? I see you threw an exception to test the value. I assume it was returning something other than NULL? No worries about your English. You're doing fine. :) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en