/** * @param \Zend_DB_Select $select * * @return $this */ protected function addConditions(\Zend_DB_Select $select) { $condition = $this->model->getCondition(); if ($condition) { $select->where($condition); } return $this; }