Exemplo n.º 1
0
 public function reset()
 {
     parent::reset();
     $this->select = 'SELECT self.*';
     $this->from = 'FROM `permissions` self';
     return $this;
 }
Exemplo n.º 2
0
 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;
 }