Hi,

  Try to do : var_dump($q->getDql());

Notice : queries creation should be handled by the table. All the "business
model" should be in the model folder (in object class or table class).

2009/12/12 George <[email protected]>

> Hi,
>
> When refractoring  the action in the function  execute_index
>
> from call  $this->jobeet_job_list = Doctrine::getTable('JobeetJob')-
> >getActiveJobs();
> into  call
>  $this->categories = Doctrine::getTable('JobeetCategory')->getWithJobs
> ();
>
> I get a white page.
> when debugging getWithJobs with var_dump as follows
>
> public function getWithJobs()
>  {
>    $q = $this->createQuery('c')
>      ->leftJoin('c.JobeetJobs j')
>      ->where('j.expires_at > ?', date('Y-m-d H:i:s', time()));
>     var_dump($q);die();
>
>    return $q->execute();
>  }
> it ends up with infinite loop with lots of output into screen.
>
> Symfonys own error hangling gives no error.
> Problem seems to be alias handling  c.JobeetJobs
> So how to handle this?
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
Alexandre Salomé
http://alexandre-salome.fr

--

You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en.


Reply via email to