Re: Saving strings to database -> problem, becouse the string is numeric

2006-06-20 Thread aka
Upgraded for latest version of Cake and it works. It seemed that the version on the server was quite old :) Thanks for the replies. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: Saving strings to database -> problem, becouse the string is numeric

2006-06-20 Thread RosSoft
for me works too, exactly with phone numbers, I've one for testing purposes and saves ok --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googl

Re: Saving strings to database -> problem, becouse the string is numeric

2006-06-20 Thread John Zimmerman [gmail]
So far I have not had trouble doing this either, but if all else fails what happense if you cast that specific variable as a string in a beforeSave call.On 6/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I'm not having any problems with this... I can save any kind ofnumeric/whatever, and the

Re: Saving strings to database -> problem, becouse the string is numeric

2006-06-20 Thread [EMAIL PROTECTED]
I'm not having any problems with this... I can save any kind of numeric/whatever, and the quotes are there. Are you using the latest version of cake? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: Saving strings to database -> problem, becouse the string is numeric

2006-06-20 Thread aka
Yes I pass an array of data for the method. I was just making long story short there ;) Can I force single quotes around each value? I can't, for example, add +1 to the database becouse cake handles it as it were a number, not a string. That is quite an annoying feature. --~--~-~--~

Re: Saving strings to database -> problem, becouse the string is numeric

2006-06-20 Thread bigdog
Don't you need $this->data for a save? $this->model->save($this->data); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscrib

Saving strings to database -> problem, becouse the string is numeric

2006-06-20 Thread aka
Hi! I have a field in database that is varchar Basicly I insert phone numbers in that field, but when I try $this->model->save(); The sql-query looks like this: INSERT INTO table (`mobile`) VALUES (0123455). The query should look like this: INSERT INTO table (`mobile`) VALUES ('012345'). beca