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
ed97632f
Commit
ed97632f
authored
Jan 17, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed scope method signatures
parent
0699eaad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
CustomerQuery.php
tests/unit/data/ar/CustomerQuery.php
+4
-2
CustomerQuery.php
tests/unit/data/ar/mongodb/CustomerQuery.php
+4
-2
ArticleIndexQuery.php
tests/unit/data/ar/sphinx/ArticleIndexQuery.php
+4
-2
No files found.
tests/unit/data/ar/CustomerQuery.php
View file @
ed97632f
...
...
@@ -7,9 +7,10 @@ use yii\db\ActiveQuery;
*/
class
CustomerQuery
extends
ActiveQuery
{
public
static
function
active
(
$query
)
public
function
active
(
)
{
$query
->
andWhere
(
'status=1'
);
$this
->
andWhere
(
'status=1'
);
return
$this
;
}
}
\ No newline at end of file
tests/unit/data/ar/mongodb/CustomerQuery.php
View file @
ed97632f
...
...
@@ -7,9 +7,10 @@ use yii\mongodb\ActiveQuery;
*/
class
CustomerQuery
extends
ActiveQuery
{
public
static
function
activeOnly
(
$query
)
public
function
activeOnly
(
)
{
$query
->
andWhere
([
'status'
=>
2
]);
$this
->
andWhere
([
'status'
=>
2
]);
return
$this
;
}
}
\ No newline at end of file
tests/unit/data/ar/sphinx/ArticleIndexQuery.php
View file @
ed97632f
...
...
@@ -7,9 +7,10 @@ use yii\sphinx\ActiveQuery;
*/
class
ArticleIndexQuery
extends
ActiveQuery
{
public
static
function
favoriteAuthor
(
$query
)
public
function
favoriteAuthor
(
)
{
$query
->
andWhere
(
'author_id=1'
);
$this
->
andWhere
(
'author_id=1'
);
return
$this
;
}
}
\ 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