Commit 01c269a9 by Paul Klimov

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

parent c1b5946d
...@@ -1297,9 +1297,6 @@ class ActiveRecord extends Model ...@@ -1297,9 +1297,6 @@ class ActiveRecord extends Model
$column = $columns[$name]; $column = $columns[$name];
if ($column->isMva) { if ($column->isMva) {
$value = explode(',', $value); $value = explode(',', $value);
$value = array_map([$column, 'typecast'], $value);
} else {
$value = $column->typecast($value);
} }
$record->_attributes[$name] = $value; $record->_attributes[$name] = $value;
} else { } else {
......
...@@ -124,6 +124,6 @@ class Connection extends \yii\db\Connection ...@@ -124,6 +124,6 @@ class Connection extends \yii\db\Connection
*/ */
public function getLastInsertID($sequenceName = '') public function getLastInsertID($sequenceName = '')
{ {
throw new NotSupportedException('"' . $this->className() . '::getLastInsertID" is not supported.'); throw new NotSupportedException('"' . __METHOD__ . '" is not supported.');
} }
} }
\ No newline at end of file
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