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
f9024dbe
Commit
f9024dbe
authored
Feb 24, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed Migration::execute() to use params correctly
parent
da07230a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
BaseActiveRecord.php
framework/db/BaseActiveRecord.php
+2
-2
Migration.php
framework/db/Migration.php
+1
-1
No files found.
framework/db/BaseActiveRecord.php
View file @
f9024dbe
...
@@ -1276,8 +1276,8 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
...
@@ -1276,8 +1276,8 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
/**
/**
* @param array $link
* @param array $link
* @param ActiveRecord $foreignModel
* @param
Base
ActiveRecord $foreignModel
* @param ActiveRecord $primaryModel
* @param
Base
ActiveRecord $primaryModel
* @throws InvalidCallException
* @throws InvalidCallException
*/
*/
private
function
bindModels
(
$link
,
$foreignModel
,
$primaryModel
)
private
function
bindModels
(
$link
,
$foreignModel
,
$primaryModel
)
...
...
framework/db/Migration.php
View file @
f9024dbe
...
@@ -139,7 +139,7 @@ class Migration extends \yii\base\Component
...
@@ -139,7 +139,7 @@ class Migration extends \yii\base\Component
{
{
echo
" > execute SQL:
$sql
..."
;
echo
" > execute SQL:
$sql
..."
;
$time
=
microtime
(
true
);
$time
=
microtime
(
true
);
$this
->
db
->
createCommand
(
$sql
)
->
execute
(
$params
);
$this
->
db
->
createCommand
(
$sql
)
->
bindValues
(
$params
)
->
execute
(
);
echo
" done (time: "
.
sprintf
(
'%.3f'
,
microtime
(
true
)
-
$time
)
.
"s)
\n
"
;
echo
" done (time: "
.
sprintf
(
'%.3f'
,
microtime
(
true
)
-
$time
)
.
"s)
\n
"
;
}
}
...
...
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