Browse Source

Merge branch 'sql_criteria' of dimti.ru:majestic into sql_criteria

namespace
Alexander Demidov 11 years ago
parent
commit
049999dfbd
  1. 2
      model/SqlCriteria.php

2
model/SqlCriteria.php

@ -146,7 +146,7 @@ class SqlCriteria
*/ */
public function select($fields) public function select($fields)
{ {
$fields = explode(',', $fields);
$fields = array_map(function($item){return trim($item);},explode(',', $fields));
$this->select = array_merge($this->select,$fields); $this->select = array_merge($this->select,$fields);
return $this; return $this;
} }

Loading…
Cancel
Save