public function reset() { parent::reset(); $this->select = 'SELECT self.*'; $this->from = 'FROM `permissions` self'; return $this; }
public function reset() { parent::reset(); $this->select = 'SELECT `types`.`name` AS `type`, `study_fields`.`name` AS `study_field`, self.*'; $this->from = 'FROM `publications` self'; $this->join('types', 'id', '=', 'type_id', 'LEFT'); $this->join('study_fields', 'id', '=', 'study_field_id', 'LEFT'); return $this; }