On Feb 12, 11:27 am, Paamayim <[email protected]> wrote:
> Hi.
>
> I've got a statement like this:
>
> $prev_article = $this->Article->find('first', array('conditions' =>
> $conditions, 'order' => array('Article.id' => 'ASC')));
>
> I know it's almost useless to tell you that, without knowing models,
> database structure, etc. I'm only asking from where I coud start to
> debug a behaviour that causes a 100% cpu usage on the server.

An error in your model definition that causes a loop. E.g. using none-
unique aliases (Like Comment belongsTo Parent, Post belongsTo Parent).
That said I thought the none-unique alias problem was fixed ages ago
so when you debug and find out where you're looping you'll be able to
answer your own question ;).

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