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
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
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
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.
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.
--~--~-~--~
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
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