try setting your error_reporting level to 8191 On 16 Apr 2008, at 17:31, [EMAIL PROTECTED] wrote: > > Even in dev > > public static function doReports(Criteria $criteria, $con = null) > { > $weeks = array(); > foreach (sfContext::getInstance()->getUser()->getMonthObj()- >> getWeeksOfMonth() as $week) { > $weeks[] = $week->firstDayOfWeek(); > } > $criteria->addAsColumn('logcount', > 'COUNT('.ActivitylogPeer::ID.')' ); > $criteria->add(ActivitylogPeer::CONSUMER_ID, self::ID, > Criteria::LEFT_JOIN ); > > > $criteria->addAnd(ActivitylogPeer::STARTDATE, $weeks, > Criteria::IN ); > $criteria->addGroupByColumn(self::ID ); > $criteria->addHaving('logcount', '0', Criteria::GREATER_THAN ); > > if (sfContext::getInstance()->getUser()->getProgramId() && > (sfContext::getInstance()->getUser()->getProgramId() > 0)) { > $criteria->addAnd(self::PROGRAM_ID, > sfContext::getInstance()- >> getUser()->getProgramId()); > } > > > return parent::doSelect($criteria, $con); > > the action is: > public function executeIndex() > { > $this->getUser()->setAttribute('year', $this- >> hasRequestParameter('year') ? $this->getRequestParameter('year') : > date('Y')); > $this->getUser()->setAttribute('month', $this- >> hasRequestParameter('month') ? $this->getRequestParameter('month') : > date('m')); > $c = new Criteria(); > $this->hasRequestParameter('consumer_id') ? $c- >> add(ConsumerPeer::ID, $this->getRequestParameter('consumer_id')) : > null; > $this->consumers = ConsumerPeer::doReports($c); > > > > > > } > > >
--~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---