Wednesday, March 31, 2010

Re: $this->...->query("...");

I suggest you turn on debug and print out what is returned from the
query, because the query is going straight to the database - CakePHP
is not doing anything to it! So what you see in your debug information
in your first post is not related to this query!
What your first post debug information shows, look like a pagination -
a count and a find!
Can you check and clarify what is your real issue here?
Enjoy,
John

On Mar 31, 9:26 pm, Dominik Kukacka <dominik.kuka...@gmail.com> wrote:
> Hey my complete function is:
>
>         $user = $this->Auth->user();
>         $this->Planet->recursive = 0;
>
>         $planets = $this->Planet->query("SELECT *
>                                         FROM planets AS Planet
>                                         LEFT OUTER JOIN buildings AS
> Building
>                                         ON (Planet.id =
> Building.planet_id)
>                                         WHERE Building.user_id=".
> $user['User']['id'].";");
>
>         $this->set('planets',$planets);
>
> greets
> Dom
>
[snip]

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

To unsubscribe, reply using "remove me" as the subject.

No comments: