What is your definition of the column grant_type_id and do you have
any other conditions defined in the model that may affect how this
column is processed?
   John

On Jun 4, 8:36 pm, John Farley <[email protected]> wrote:
> Hi all,
>
> I've been using CakePHP for about 2 years, and I've never seen
> anything like this.  I have a relatively simple find('all') call:
>
> $dates = $this->GrantTypeDate->find('all', array('conditions' => array
> ('GrantTypeDate.grant_type_id' => 4)));
>
> The important part is the condition.  The condition in the SQL looks
> like this:
>
> WHERE `GrantTypeDate`.`grant_type_id` = 1
>
> For some reason, Cake is just using a 1 in the where clause rather
> than 4.  And it doesn't matter whether I use a variable or hardcoded
> integer.  Cake just uses 1.
>
> This query is being called from an element using requestAction.
> That's the only difference in this call from the hundreds of others in
> the application.  Has anyone seen this before?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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