Hi,
Do you know what is problem in this:
$criteria = new CDbCriteria;
$criteria->addCondition('employee_id = :employeeId');
$criteria->addCondition('date >= :startDate');
$criteria->addCondition('date <= :endDate');
$criteria->params = array(
':employeeId' => $model->employee_id,
':startDate' => $this->_startDate,
':endDate' => $this->_endDate,
);
$this->tasksByEmployeeDataProvider = new CActiveDataProvider('Task', array(
'criteria' => $criteria,
'pagination' => array(
'pageSize' => 100,
),
));
If I comment the dates off, it works fine. But for some reason I get null result, If I add the dates in condition.