Sorry, I should've tested this sooner, it does work if I specify the
column in an array as an argument with the findAll($condition,
$fields) method.  I'm assuming this does mean that the fields for the
model are cached somehow (which makes sense, instead of running a desc
query every time), but how would one either force a refresh of this
cache or delete the current model cache to force a refresh?

On Jul 20, 3:51 pm, RTigger <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> N00b question I'm sure, as I'm just maintaining someone else's cakephp
> project, but I've run into a problem:
>
> I have a table that is tied to a model.  I've added another column to
> the end of the table (IsFile tinyint(1)), but after running a 
> model->findAll($condition) in my controller it doesn't return the new column
>
> in any of the objects returned.  It returns the exact same data as
> before, just without the new column.  The values for that column have
> all been set to 0, so it's not null or anything like that.  Anyone
> have any suggestions?  Is it possible the previous table layout was
> cached somewhere and it's using that for the findAll Query?  Should I
> have to specify a field array as a findAll argument to ensure that
> field is selected?


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