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
593b478f
Commit
593b478f
authored
Jul 10, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added extra callable typehints
parent
4ff28fb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ActiveQuery.php
framework/db/ActiveQuery.php
+1
-1
ActiveRelationTrait.php
framework/db/ActiveRelationTrait.php
+1
-1
No files found.
framework/db/ActiveQuery.php
View file @
593b478f
...
...
@@ -699,7 +699,7 @@ class ActiveQuery extends Query implements ActiveQueryInterface
* @return static
* @see via()
*/
public
function
viaTable
(
$tableName
,
$link
,
$callable
=
null
)
public
function
viaTable
(
$tableName
,
$link
,
callable
$callable
=
null
)
{
$relation
=
new
ActiveQuery
(
get_class
(
$this
->
primaryModel
),
[
'from'
=>
[
$tableName
],
...
...
framework/db/ActiveRelationTrait.php
View file @
593b478f
...
...
@@ -99,7 +99,7 @@ trait ActiveRelationTrait
* Its signature should be `function($query)`, where `$query` is the query to be customized.
* @return static the relation object itself.
*/
public
function
via
(
$relationName
,
$callable
=
null
)
public
function
via
(
$relationName
,
callable
$callable
=
null
)
{
$relation
=
$this
->
primaryModel
->
getRelation
(
$relationName
);
$this
->
via
=
[
$relationName
,
$relation
];
...
...
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