On Tue, Nov 16, 2010 at 12:50 PM, qua...@gmail.com <qua...@gmail.com> wrote:
> Hi,
>
> I have a bunch of models with various associations set up between them
> and seems like Cakephp at times executes incorrect SQL statement and
> cause MySQL to barf.
>
> Please refer the the "EDIT" followed by this to see some examples of
> the problem.
>
> It doesn't happen all the time but it eventually happens since I am
> doing everything in a tight loop.

Difficult to say without seeing more code (and your model relations)
but my first guess is that you're not calling Model->create() during
each iteration. But I suppose this could be due to some incorrect
associations, also.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to