Oh! I thought that was a typo - Chapter.0][paragraph][0][field] etc
works
On May 12, 8:21 am, francky06l <[EMAIL PROTECTED]> wrote:
> Try to set the model to null in your form->create and give the model
> name in the input names ..
> (just a hint, not sure that will work..)
> I did not try 'Chapt
Try to set the model to null in your form->create and give the model
name in the input names ..
(just a hint, not sure that will work..)
I did not try 'Chapter.0][paragraph .. ' maybe this will solve the
model name problem.
On May 12, 2:01 pm, James K <[EMAIL PROTECTED]> wrote:
> This almost work
This almost works for me - it fails if you have additional models
called in the $uses array of the controller. Cake ends up putting the
name of the first model in the uses at the front of those form field
names.
So if I have another model called ListItem which I use to pull generic
list items int
For this type I use a kind of "hack" in the field names :
echo $form->input('Chapter/0][paragraph][0][field]', ... )
That does the trick, but I did not check so many levels in the
controller .. ie : be sure to check that $this->data is correct.
hth
On May 12, 2:26 am, James K <[EMAIL PROTECTED
Having the exact same issue here - looks like Cake simply doesn't
support hasMany past one level with the dot notation.
On Apr 18, 8:41 am, Max Romantschuk <[EMAIL PROTECTED]> wrote:
> I'm working on a form for a three-levelhasManyrelationship.
> Conceptually: BookhasManyChapterhasManyParagraph.
Just checking... Any thoughts on this, anyone? :)
Thanks,
Max Romantschuk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscri