On Thu, Jun 5, 2008 at 6:59 AM, aka <[EMAIL PROTECTED]> wrote:
>
> Is there a workaround for this?
>

How would Cake be able to know that when you pass it a number that
what you really mean is a string?  This is the problem.  You are
passing it a string but neither Cake nor PHP knows without you telling
it that you want it treated as a string.

You could try casting it as a string like this, but this is totally untested:

$something = array("a" => "asdf", "b" => "12");
$this->set('car', $this->Car->find(array("type" => (string)$something['b'])));

Hope that helps, but perhaps it would be better to structure your data
in such a way that it is not so ambiguous.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to