48 Commits

Author SHA1 Message Date
5acf17e658 Fixed phpdoc for yii\db\Query [skip ci] 2014-10-05 11:24:40 +04:00
9df21d46f3 reverted addition of $where property 2014-09-24 13:39:03 +02:00
222f9ddfad added missing documentation about the NOT operator in Query
fixes #5147
2014-09-24 12:53:33 +02:00
b9c97ff2aa Fixes #4938: When yii\db\ActiveQuery is used to build sub-queries, its WHERE clause is not correctly generated 2014-09-12 16:46:12 -04:00
2f4a09ef53 phpdoc 2014-06-25 19:33:29 +02:00
91965fd391 phpdoc formatting issues 2014-04-23 02:55:17 +02:00
76d8e2b5b3 code style, fixes #3140 2014-04-17 13:24:16 +02:00
a60d295253 Added support for using sub-queries when building a DB query with IN condition 2014-04-15 20:20:18 -04:00
cee5fa5dd3 New addSelect method
New addSelect method. Useful for scopes.
2014-04-08 12:10:29 +01:00
0fa19291f1 refactored filterWhere(). 2014-04-02 20:03:42 -04:00
e9e59483f4 removed unnecessary code duplication 2014-04-02 19:07:13 +02:00
96f1c4c10b renamed Query::filter() to Query::filterWhere() 2014-04-02 18:48:14 +02:00
06fdb79730 Added support for arbitrary number of parameters for NOT, AND, OR in filter methods of Query 2014-03-31 15:09:33 +04:00
ecf019e311 Merge branch 'master' 2014-03-31 02:20:56 +04:00
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +04:00
8cd247730a Query::filter() adjustments 2014-03-29 23:26:02 +04:00
a884c80fe3 Merge branch 'master' 2014-03-29 22:55:59 +04:00
13c0931b23 Fixes #2880 2014-03-27 10:58:56 -04:00
3c1a8141fd fixes #2002 2014-03-27 12:41:16 +04:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
411dc71b09 Fixed getting the count for queries with the union 2014-03-22 13:48:09 +04:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
c7e8d8b900 @param, @var, @property and @return must declare types as boolean, integer, string, array or null 2014-03-03 20:50:44 +03:00
0e2b2fcbe6 Fix for logic Query::queryScalar uses to check for SELECT DISTINCT 2014-02-27 16:59:47 -08:00
a3e128bb0b Query::queryScalar wasn't making SELECT DISTINCT queries subqueries 2014-02-27 16:04:16 -08:00
d3d832a3bf phpdoc fixes 2014-02-25 12:51:08 +01:00
fb3b2f2c7d Fixes #2490: yii\db\Query::count() and other query scalar methods now properly handle queries with GROUP BY clause 2014-02-19 08:38:43 -05:00
9a068f50f4 Refactored batch query. 2014-02-15 11:22:48 -05:00
3a930bd675 Finished batch query feature. 2014-02-14 18:13:42 -05:00
1571c72251 Fixes #2409: Added support for fetching data from database in batches 2014-02-14 16:45:46 -05:00
f59598bb8b Added support for building SQLs with sub-queries 2014-02-11 23:23:02 -05:00
1f42b72baa Fixes #2346: ActiveQuery used in building sub-query should not need to set FROM clause explicitly. 2014-02-06 10:39:27 -05:00
c9c59bdc26 Update Query.php
Using short array syntax.
2014-01-23 17:57:31 +03:00
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.
2014-01-23 16:53:04 +03:00
8109708b37 Update Query.php
Forget one ";" :D
2014-01-23 09:08:59 +03:00
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>.
2014-01-23 08:51:15 +03:00
febce76397 fixed build break and fixed doc about exists/not exists. 2014-01-11 10:17:14 -05:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
48d04fbb8c !== array() => !empty() 2013-05-07 19:57:27 +04:00
03cd47aed9 phpdoc typos 2013-05-05 01:26:40 +04:00
06feccff8b refactored query builder.
finished Sort.
2013-03-06 10:51:33 -05:00
4fdaab3560 updated file header. 2013-03-04 08:03:46 -05:00
8b2b7915b4 Renamed application to app. 2013-02-05 16:12:22 -05:00
9958a5802e DB cleanup 2013-01-17 12:54:13 -05:00
8e05e6e62d changed copyright line. 2013-01-07 11:34:52 -05:00
2188ece107 refactoring DB 2013-01-05 21:20:13 -05:00
8517ee9e50 reorganized DB classes. 2013-01-05 16:46:53 -05:00