Commit 16239c23 by Carsten Brandt

reverted wrong change in sphinx

parent d87ff0be
...@@ -1292,7 +1292,7 @@ abstract class ActiveRecord extends Model ...@@ -1292,7 +1292,7 @@ abstract class ActiveRecord extends Model
public static function create($row) public static function create($row)
{ {
$record = static::instantiate($row); $record = static::instantiate($row);
$columns = array_flip(static::attributes()); $columns = static::getIndexSchema()->columns;
foreach ($row as $name => $value) { foreach ($row as $name => $value) {
if (isset($columns[$name])) { if (isset($columns[$name])) {
$column = $columns[$name]; $column = $columns[$name];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment