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
f6dd6fa2
Commit
f6dd6fa2
authored
Jan 24, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed `ActiveRecordInterface::createActiveRelation()` to `createRelation()`
parent
0dfc8b1f
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
9 deletions
+10
-9
ActiveRecord.php
extensions/elasticsearch/ActiveRecord.php
+1
-1
ActiveRecord.php
extensions/mongodb/ActiveRecord.php
+1
-1
ActiveRecord.php
extensions/mongodb/file/ActiveRecord.php
+1
-1
ActiveRecord.php
extensions/redis/ActiveRecord.php
+1
-1
ActiveRecord.php
extensions/sphinx/ActiveRecord.php
+1
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
ActiveRecord.php
framework/db/ActiveRecord.php
+1
-1
ActiveRecordInterface.php
framework/db/ActiveRecordInterface.php
+1
-1
BaseActiveRecord.php
framework/db/BaseActiveRecord.php
+2
-2
No files found.
extensions/elasticsearch/ActiveRecord.php
View file @
f6dd6fa2
...
...
@@ -143,7 +143,7 @@ class ActiveRecord extends BaseActiveRecord
/**
* @inheritdoc
*/
public
static
function
create
Active
Relation
(
$config
=
[])
public
static
function
createRelation
(
$config
=
[])
{
return
new
ActiveRelation
(
$config
);
}
...
...
extensions/mongodb/ActiveRecord.php
View file @
f6dd6fa2
...
...
@@ -154,7 +154,7 @@ abstract class ActiveRecord extends BaseActiveRecord
* @param array $config the configuration passed to the ActiveRelation class.
* @return ActiveRelation the newly created [[ActiveRelation]] instance.
*/
public
static
function
create
Active
Relation
(
$config
=
[])
public
static
function
createRelation
(
$config
=
[])
{
return
new
ActiveRelation
(
$config
);
}
...
...
extensions/mongodb/file/ActiveRecord.php
View file @
f6dd6fa2
...
...
@@ -72,7 +72,7 @@ abstract class ActiveRecord extends \yii\mongodb\ActiveRecord
* @param array $config the configuration passed to the ActiveRelation class.
* @return ActiveRelation the newly created [[ActiveRelation]] instance.
*/
public
static
function
create
Active
Relation
(
$config
=
[])
public
static
function
createRelation
(
$config
=
[])
{
return
new
ActiveRelation
(
$config
);
}
...
...
extensions/redis/ActiveRecord.php
View file @
f6dd6fa2
...
...
@@ -59,7 +59,7 @@ class ActiveRecord extends BaseActiveRecord
/**
* @inheritdoc
*/
public
static
function
create
Active
Relation
(
$config
=
[])
public
static
function
createRelation
(
$config
=
[])
{
return
new
ActiveRelation
(
$config
);
}
...
...
extensions/sphinx/ActiveRecord.php
View file @
f6dd6fa2
...
...
@@ -310,7 +310,7 @@ abstract class ActiveRecord extends BaseActiveRecord
* @param array $config the configuration passed to the ActiveRelation class.
* @return ActiveRelationInterface the newly created [[ActiveRelation]] instance.
*/
public
static
function
create
Active
Relation
(
$config
=
[])
public
static
function
createRelation
(
$config
=
[])
{
return
new
ActiveRelation
(
$config
);
}
...
...
framework/CHANGELOG.md
View file @
f6dd6fa2
...
...
@@ -128,6 +128,7 @@ Yii Framework 2 Change Log
-
Chg: Advanced app template: moved database connection DSN, login and password to
`-local`
config not to expose it to VCS (samdark)
-
Chg: Renamed
`yii\web\Request::acceptedLanguages`
to
`acceptableLanguages`
(qiangxue)
-
Chg: Removed implementation of
`Arrayable`
from
`yii\Object`
(qiangxue)
-
Chg: Renamed
`ActiveRecordInterface::createActiveRelation()`
to
`createRelation()`
(qiangxue)
-
New #66:
[
Auth client library
](
https://github.com/yiisoft/yii2-authclient
)
OpenId, OAuth1, OAuth2 clients (klimov-paul)
-
New #1393:
[
Codeception testing framework integration
](
https://github.com/yiisoft/yii2-codeception
)
(
Ragazzo
)
-
New #1438:
[
MongoDB integration
](
https://github.com/yiisoft/yii2-mongodb
)
ActiveRecord and Query (klimov-paul)
...
...
framework/db/ActiveRecord.php
View file @
f6dd6fa2
...
...
@@ -269,7 +269,7 @@ class ActiveRecord extends BaseActiveRecord
* @param array $config the configuration passed to the ActiveRelation class.
* @return ActiveRelation the newly created [[ActiveRelation]] instance.
*/
public
static
function
create
Active
Relation
(
$config
=
[])
public
static
function
createRelation
(
$config
=
[])
{
return
new
ActiveRelation
(
$config
);
}
...
...
framework/db/ActiveRecordInterface.php
View file @
f6dd6fa2
...
...
@@ -263,7 +263,7 @@ interface ActiveRecordInterface
* @param array $config the configuration passed to the ActiveRelation class.
* @return ActiveRelation the newly created [[ActiveRelation]] instance.
*/
public
static
function
create
Active
Relation
(
$config
=
[]);
public
static
function
createRelation
(
$config
=
[]);
/**
* Returns the relation object with the specified name.
...
...
framework/db/BaseActiveRecord.php
View file @
f6dd6fa2
...
...
@@ -325,7 +325,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
public
function
hasOne
(
$class
,
$link
)
{
/** @var ActiveRecord $class */
return
$class
::
create
Active
Relation
([
return
$class
::
createRelation
([
'modelClass'
=>
$class
,
'primaryModel'
=>
$this
,
'link'
=>
$link
,
...
...
@@ -364,7 +364,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
public
function
hasMany
(
$class
,
$link
)
{
/** @var ActiveRecord $class */
return
$class
::
create
Active
Relation
([
return
$class
::
createRelation
([
'modelClass'
=>
$class
,
'primaryModel'
=>
$this
,
'link'
=>
$link
,
...
...
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