Hi there! I've got a problem on day 7 that brings me errors on later days when I run the tests. I try to explain:
As long as we sort the jobs by 'expires_at DESC', I understand that the job in 'Sensio Labs' appear first (even if in my case it is not followed by company 100 but company 114 instead...). But then, how can this work when, after refactoring, we sort by 'created_at DESC'? Is it a typing mistake or there is some magic that I don't understand here? Thanks in advance! [code] public function addActiveJobsQuery(Doctrine_Query $q = null) { if (is_null($q)) { $q = Doctrine_Query::create() ->from('JobeetJob j'); } $alias = $q->getRootAlias(); $q->andWhere($alias . '.expires_at > ?', date('Y-m-d H:i:s', time ())) ->addOrderBy($alias . '.created_at DESC'); return $q; } [/code] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---