Il giorno mercoledì 27 aprile 2011 02:13:12 UTC+2, David ha scritto: > > Yes, I built the model before loading. I was also able to replicate > the errors in the doctrine sandbox. It looks like the real problem is > that the doctrine data dump is not correctly adding quotes to the > string fields. > > Yes, it looks like a bug of sfYaml component (which is included both in symfony and in Doctrine). sfYaml has a sfYamlinline class that is responsible to convert single value into yaml string.
Here is sfYamlinline::dump() code https://gist.github.com/4fb77c3a5074dfbb334c As you can see there is a (quite) huge switch to check the type of $value and for your (and us...) bad luck : is_numeric('3333E1600') will return true, here's why quotes are missing in dumped yaml file: sfYamlinline parser recognize it as numeric values. I think this is a symfony bug because sfYaml is a symfony component (as far as I know). I've not looked for this bug on symfony trac, maybe you can submit a new issue if it was not already reported. Francesco --- Francesco Tassi More about me http://flavors.me/ftassi -- 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