Browse Source

reverted wrong change in sphinx

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
16239c2395
  1. 2
      extensions/sphinx/ActiveRecord.php

2
extensions/sphinx/ActiveRecord.php

@ -1292,7 +1292,7 @@ abstract class ActiveRecord extends Model
public static function create($row)
{
$record = static::instantiate($row);
$columns = array_flip(static::attributes());
$columns = static::getIndexSchema()->columns;
foreach ($row as $name => $value) {
if (isset($columns[$name])) {
$column = $columns[$name];

Loading…
Cancel
Save