Can you show the sql log ?  Is the data you're showing the actual
pr($this->data) output ?

ps: i'm assuming Application array having two [name] keys is a typo.

On Fri, Sep 2, 2011 at 1:35 PM, Dwayne Hanekamp <[email protected]>wrote:

> Hey all,
>
> I'm building an application on which people need to fill in some
> information and answer some questions.
> I have two database tables:
> Applications / Answers, Applications has a 'hasMany'-relationship with
> Answers. The array coming from my form looks this way:
>
> Array
> (
>    [Application] => Array
>        (
>            [name] => test
>            [email] => [email protected]
>            [name] => test
>            [link] => test
>        )
>
>    [Answer] => Array
>        (
>            [0] => Array
>                (
>                    [question_id] => 1
>                    [answer] => test
>                )
>
>            [1] => Array
>                (
>                    [question_id] => 2
>                    [answer] => test
>                )
>
>        )
>
> )
>
> When i try to do: $this->Application->saveAll($this-data); it simply
> doesn't work.
>
> Does anyone have an idea?
>
> Thanks in advance!
>
> Dwayne
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to