Browse Source

Redundant typecast removed from yii\sphinx\ActiveRecord::create()

tags/2.0.0-beta
Paul Klimov 11 years ago
parent
commit
01c269a912
  1. 3
      extensions/sphinx/ActiveRecord.php
  2. 2
      extensions/sphinx/Connection.php

3
extensions/sphinx/ActiveRecord.php

@ -1297,9 +1297,6 @@ class ActiveRecord extends Model
$column = $columns[$name];
if ($column->isMva) {
$value = explode(',', $value);
$value = array_map([$column, 'typecast'], $value);
} else {
$value = $column->typecast($value);
}
$record->_attributes[$name] = $value;
} else {

2
extensions/sphinx/Connection.php

@ -124,6 +124,6 @@ class Connection extends \yii\db\Connection
*/
public function getLastInsertID($sequenceName = '')
{
throw new NotSupportedException('"' . $this->className() . '::getLastInsertID" is not supported.');
throw new NotSupportedException('"' . __METHOD__ . '" is not supported.');
}
}
Loading…
Cancel
Save