Qiang Xue
0fa19291f1
refactored filterWhere().
11 years ago
Carsten Brandt
e9e59483f4
removed unnecessary code duplication
11 years ago
Carsten Brandt
96f1c4c10b
renamed Query::filter() to Query::filterWhere()
11 years ago
Alexander Makarov
06fdb79730
Added support for arbitrary number of parameters for NOT, AND, OR in filter methods of Query
11 years ago
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed `tbl_` default for table prefix
11 years ago
Alexander Makarov
8cd247730a
Query::filter() adjustments
11 years ago
Qiang Xue
13c0931b23
Fixes #2880
11 years ago
Alexander Makarov
3c1a8141fd
fixes #2002
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Koudy
411dc71b09
Fixed getting the count for queries with the union
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Alexander Mohorev
c7e8d8b900
@param , @var , @property and @return must declare types as boolean, integer, string, array or null
11 years ago
Jacob Morrison
0e2b2fcbe6
Fix for logic Query::queryScalar uses to check for SELECT DISTINCT
11 years ago
Jacob Morrison
a3e128bb0b
Query::queryScalar wasn't making SELECT DISTINCT queries subqueries
11 years ago
Carsten Brandt
d3d832a3bf
phpdoc fixes
11 years ago
Qiang Xue
fb3b2f2c7d
Fixes #2490 : `yii\db\Query::count()` and other query scalar methods now properly handle queries with GROUP BY clause
11 years ago
Qiang Xue
9a068f50f4
Refactored batch query.
11 years ago
Qiang Xue
3a930bd675
Finished batch query feature.
11 years ago
Qiang Xue
1571c72251
Fixes #2409 : Added support for fetching data from database in batches
11 years ago
Qiang Xue
f59598bb8b
Added support for building SQLs with sub-queries
11 years ago
Qiang Xue
1f42b72baa
Fixes #2346 : ActiveQuery used in building sub-query should not need to set FROM clause explicitly.
11 years ago
Ivan Pomortsev
c9c59bdc26
Update Query.php
...
Using short array syntax.
11 years ago
Ivan Pomortsev
5f3d601b36
Update Query.php
...
Change passing parameters to array with two elements – 'all' which means if we use UNION or UNION ALL construction and 'query' which is our sql query that will be at right of construction.
11 years ago
Ivan Pomortsev
8109708b37
Update Query.php
...
Forget one ";" :D
11 years ago
Ivan Pomortsev
01c89ea3da
Update Query.php
...
Change union method to accept also <code>$all</code> variable. TRUE means that we must results <code>UNION ALL</code> construction, FALSE – that <code>UNION</code>.
11 years ago
Qiang Xue
febce76397
fixed build break and fixed doc about exists/not exists.
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
9b1c2c8064
Fixes #1586 : `QueryBuilder::buildLikeCondition()` will now escape special characters and use percentage characters by default
11 years ago
Carsten Brandt
795c74100d
reverted #1598 and added a test for it
11 years ago
Vincent
488918d03c
Refinement in comments
...
I checked this using XDebug, and the function actually returns null (which is something different than false). I assume it is the comment that should be changed, and not the code itself...
11 years ago
Carsten Brandt
b4612637ec
make count behave like in SQL
...
also fixed count behavior according to limit and offset.
fixes #1458
11 years ago
Carsten Brandt
b2d9166927
refactored scalar query functions to share common code
11 years ago
Carsten Brandt
124a73a598
make Query reuseable
...
fixes #1545
11 years ago
Qiang Xue
24621c3dd1
improved doc
11 years ago
Qiang Xue
79866ee3e0
Improved Query::select() doc.
11 years ago
Carsten Brandt
679da53390
polished Query API
11 years ago
Carsten Brandt
8250cfbb0f
reverted change of count() signature
11 years ago
Carsten Brandt
65338972c7
refactored ActiveRecord classes to use Interfaces and traits
...
this allows us to implement other activerecord implementations based on
NoSQL dbms
11 years ago
Carsten Brandt
b8e31d50bb
renamed AR trait classes
11 years ago
Taras Gudz
9b95a81b0c
Fixed the rest phpDocs [skip ci]
11 years ago
Carsten Brandt
4653526262
moved common parts of db ActiveRelation and Query to traits
...
these parts can be reused in other ActiveRecord implementations
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Alexander Makarov
6488fe47ec
Better phpdoc for chained method calls
11 years ago
Qiang Xue
6dba4da3ed
Fixes #828 : refactored QueryBuilder::build()
11 years ago
Ilya Antipenko
7fd68199e5
Fix SORT_DESC comment in Query.php
11 years ago
Qiang Xue
0cbb05d7a2
Added Query::indexBy
11 years ago
Qiang Xue
f03cdf0a47
renamed Command::queryRow() to queryOne().
11 years ago
Qiang Xue
c4a57a9f6c
Refactored Query and ActiveQuery.
...
Finished ActiveDataProvider.
11 years ago
Qiang Xue
f72105166c
reorganized the main repo to satisfy PSR-0.
12 years ago
resurtm
c98628d42e
CS fixes.
12 years ago