Dear All,
I've expierienced unpleasant problem.
I have a varchar(6) field in my database which is supposed to store
color codes
Fragment from schema.yml:
code: {type: varchar(6), required: true}
In fixtures I have, for example:
CsfColor_1:
code: 000000
xorder: 10
name: Black
CsfColor_2:
code: 000080
xorder: 50
name: Navy
Finally in the database I get:
code = 0 and code = 80
With values like 00ff00 it doesn't happen as they strictly appear to
be string values, however I suppose symfony thinks that 000000 and
000080 are integers despite everything and cuts the leading zeros. How
do I fix this?
The Symfony version is 1.0
Thank you in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---