Hi,

not sure but this sounds like a problem with cached models, just
delete all in app/tmp/cache/models so they get regenerated.

Hope this helps,

Michael

On 19 Sep., 17:27, Pablo76 <[EMAIL PROTECTED]> wrote:
> This is an unusual problem, hopefully someone can shed some light on
> it as currently it is stopping an important development project.
>
> Cake version: 1.2.0.7296 rc2
> Running on Wamp Server 2 (MySQL 5.0.51b)
>
> Everything was going fine but after starting coding today, I have
> added a new field into one of my tables. When I try to output this
> field into a view, I get:
> Notice (8): Undefined index:  location [APP\views\projects
> \admin_index.ctp, line 51]
>
> In the SQL debug:
>
> SELECT `Project`.`id`, `Project`.`title`, `Project`.`architect`,
> `Project`.`description`, `Project`.`slug`,
> `Project`.`project_category_id`, `Project`.`created`,
> `Project`.`modified`, `ProjectCategory`.`id`,
> `ProjectCategory`.`category`, `ProjectCategory`.`created`,
> `ProjectCategory`.`modified`, `ProjectCategory`.`slug` FROM `projects`
> AS `Project` LEFT JOIN `project_categories` AS `ProjectCategory` ON
> (`Project`.`project_category_id` = `ProjectCategory`.`id`) WHERE 1 = 1
> ORDER BY `Project`.`title` asc LIMIT 20
>
> Project.location is not present. This is using a standard pagination
> type query to get the records.
>
> I can add and edit this field through PhpMyAdmin without a problem,
> but I cannot write anything to the field or output the fields contents
> in in my Cake app.
>
> Also, after adding a new table to the DB, Bake does not see it when I
> try to Bake a Model for it. It lists all of my tables except for the
> new one.
>
> I have tried reinstalling Wamp, but no change.
>
> I am baffled to say the least. Thanks in advance for any advice
> offered.
--~--~---------~--~----~------------~-------~--~----~
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