Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
01c269a9
Commit
01c269a9
authored
Nov 22, 2013
by
Paul Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redundant typecast removed from yii\sphinx\ActiveRecord::create()
parent
c1b5946d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
ActiveRecord.php
extensions/sphinx/ActiveRecord.php
+0
-3
Connection.php
extensions/sphinx/Connection.php
+2
-1
No files found.
extensions/sphinx/ActiveRecord.php
View file @
01c269a9
...
@@ -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
{
...
...
extensions/sphinx/Connection.php
View file @
01c269a9
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment