Hi BeetleJuice,

I have the same problem using v1.1.19.6305. Can't tell if I have the
Bake script warning as I can't seem to find the php error log on my
local installation, it doesn't show the warning when baking.

Double checked the model relations and can't see any problem there,
baking seems to fail when it has to insert the hasOne-related fields.
My guess is it must be a Bake bug as the scaffolded views work fine.

Hopefully someone has a solution to share with us, until then I'm not
Baking anymore and correcting the Views by hand.

grtz, Joshua

On Feb 14, 12:50 pm, beetlejuice <[EMAIL PROTECTED]> wrote:
> hi all,
>
> i uses cake 1.1.19.6305 and got pb while baking views.
>
> i got 'Notice:Undefinedindex'
> when cake is trying to build a link to the view of an associated
> model.
> in the baked source of aindex.thtml, you clearly see the problem :
> e.g.
> <?php echo $html->link($catwalk['']['id'], '/admin/catwalkhomes/
> view/' .$catwalk['']['id'])?>
> instead of :
> <?php echo $html->link($catwalk['catwalkhomes']['id'], '/admin/
> catwalkhomes/view/' .$catwalk['catwalkhomes']['id'])?>
>
> i don't have this pb if i'm using 'pure' scaffolding
> so the pb must be in bake ?
>
> FYI : i got this warning (don't know if related)
> Warning: Invalid argument supplied for foreach() in D:\...
> \cake_1.1.19.6305\cake\scripts\bake.php on line 917
>
> what am i missing ?
> thanks in advance   :)

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