Qiang Xue
e1f4a9cc8f
Added Connection::enableSavepoint.
2014-02-15 23:00:30 -05:00
Qiang Xue
bea9e3fc06
Fixes #1645 : Added support for nested DB transactions
2014-02-15 22:16:09 -05:00
Qiang Xue
abb2a0db97
minor improvement of label generation.
2014-02-15 14:25:32 -05:00
Qiang Xue
10e7bca3f4
Merge pull request #2443 from djagya/2436-related-model-attributes
...
#2436 receive label of the attribute from related model
2014-02-15 11:38:21 -05:00
Qiang Xue
9a068f50f4
Refactored batch query.
2014-02-15 11:22:48 -05:00
djagya
da16f508c2
#2436 override the function getAttributeLabel in BaseActiveRecord to receive label of the attribute, which looks like relatedMode.attribute, from the related model
2014-02-15 12:19:27 +01:00
djagya
44f5c73111
#2436 override the function getAttributeLabel in BaseActiveRecord to receive label of the attribute, which looks like relatedMode.attribute, from the related model
2014-02-15 12:08:10 +01:00
Qiang Xue
3a930bd675
Finished batch query feature.
2014-02-14 18:13:42 -05:00
Qiang Xue
1571c72251
Fixes #2409 : Added support for fetching data from database in batches
2014-02-14 16:45:46 -05:00
Qiang Xue
e79af9117e
ensure populateRelation() is called for lazy loading.
2014-02-14 10:07:19 -05:00
Qiang Xue
f59598bb8b
Added support for building SQLs with sub-queries
2014-02-11 23:23:02 -05:00
Carsten Brandt
8af941fb53
added note about usage to AR::instantiate()
...
fixes #2370
2014-02-10 10:51:16 +01:00
Alexander Makarov
dd26d39dd8
Removed unused namespace imports
2014-02-07 13:26:00 +04:00
Qiang Xue
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
Alexander Makarov
eb3c6866dd
Removed unused variable
2014-02-06 00:46:50 +04:00
Carsten Brandt
4a9f47bedd
refactored sphinx and db AR to call parent implementation of populateRecord()
2014-02-03 14:12:03 +01:00
Carsten Brandt
16e1aff41b
renamed ActiveRecord::create() to populateRecord()
...
- refactored elasticsearch AR to make type and index available in
instantiate(), issue #1313
fixes #2281
2014-02-03 14:07:12 +01:00
Qiang Xue
266aadd230
Only treat 32bit signed integers as integers so that 32bit clients won’t have trouble.
2014-02-02 17:18:03 -05:00
Qiang Xue
8001d2348c
refactored ActiveRecord::create().
2014-02-02 15:00:54 -05:00
Vladimir Zbrailov
a97f6387f9
added check column
2014-02-02 22:36:56 +04:00
Vladimir Zbrailov
0e0acb2731
added inherit doc block and task number
2014-02-02 20:22:56 +04:00
Vladimir Zbrailov
d017567273
override create
2014-02-01 22:31:13 +04:00
Vladimir Zbrailov
903f5618fe
Added typecast database types into php types
2014-02-01 12:57:40 +04:00
Alexander Makarov
b21fd298c5
Fixed minor coding style issues
2014-02-01 01:18:38 +04:00
Qiang Xue
8e11629a65
Fixes #2160 : SphinxQL does not support OFFSET
...
Improved `QueryBuilder::buildLimit()` to support big numbers
2014-01-29 22:42:56 -05:00
Qiang Xue
8ecceb395f
Fixes #2210 : Mysql driver will now treat tinyint(1) as integer instead of boolean
2014-01-29 13:54:17 -05:00
Carsten Brandt
262189533a
huge amount of documentation link fixes
2014-01-28 17:54:40 +01:00
Carsten Brandt
e27c3872ed
doc improvements
2014-01-28 15:17:11 +01:00
Qiang Xue
2be0fd6e13
more union fix.
2014-01-27 14:50:41 -05:00
Qiang Xue
d9a85d091a
Fixes #2175 : QueryBuilder will now append UNION statements at the end of the primary SQL
2014-01-27 14:36:23 -05:00
Qiang Xue
661fe24aab
Merge pull request #2137 from Ana1oliy/issue-1659
...
issue #1659 : released buildLimitOffset() for MSSQL
2014-01-25 13:27:42 -08:00
Alexander Makarov
ee8c0404bf
minor code style and phpdoc fix
2014-01-25 14:07:07 +04:00
Qiang Xue
f6dd6fa2e9
Renamed ActiveRecordInterface::createActiveRelation() to createRelation()
2014-01-24 14:46:53 -05:00
Anatoliy Miller
9c97fe11cb
issue #1659 : released buildLimitOffset() for MSSQL
2014-01-24 04:10:55 +08:00
Ivan Pomortsev
a9286b899c
Update QueryBuilder.php
...
Change <code>array_reduce</code> with anonimous function variant to easy string collection from pieces of unions.
2014-01-23 18:24:54 +03:00
Ivan Pomortsev
c9c59bdc26
Update Query.php
...
Using short array syntax.
2014-01-23 17:57:31 +03:00
Ivan Pomortsev
7da3449d09
Update QueryBuilder.php
...
Change buildUnion method to be ready to accept parameters in <code>['all' => $all, 'query' => $query]</code> format for division to "UNION" and "UNION ALL" constructions.
2014-01-23 16:57:34 +03:00
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.
2014-01-23 16:53:04 +03:00
Ivan Pomortsev
8109708b37
Update Query.php
...
Forget one ";" :D
2014-01-23 09:08:59 +03:00
Ivan Pomortsev
5d3fd930d8
Update QueryBuilder.php
...
Delete some spaces from result string.
2014-01-23 09:05:41 +03:00
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>.
2014-01-23 08:51:15 +03:00
Ivan Pomortsev
1ea895e22b
Update QueryBuilder.php
...
Fixed some errors – syntax with ";" after closure function and also moved building of unions queries into this function.
2014-01-23 08:45:29 +03:00
Ivan Pomortsev
12cbaf90b5
Update QueryBuilder.php
...
Change using of implode to convert array of queries to union to array_reduce. Result of this changing is that code feel difference between two selects that connects with UNION and two selects that connects with UNION ALL.
2014-01-23 07:47:48 +03:00
Alexander Makarov
4a837debb3
Merge branch 'master'
2014-01-22 03:06:43 +04:00
Alexander Makarov
76705b4319
Merge branch 'master'
...
Conflicts:
tests/unit/data/ar/elasticsearch/Customer.php
2014-01-22 03:06:21 +04:00
Qiang Xue
5b3fa9f5ba
Fixes #2091 : QueryBuilder::buildInCondition() fails to handle array not starting with index 0
2014-01-21 08:52:36 -05:00
Luciano Baraglia
13aa88bc5b
Fix for #2087
2014-01-21 09:28:41 -03:00
Luciano Baraglia
7d33a5d3b5
Some Code style fixes
2014-01-19 13:35:36 -03:00
Qiang Xue
3e9a074394
Merge pull request #2050 from yiisoft/feature-fixture
...
Feature fixture
2014-01-18 21:08:55 -08:00
Alexander Makarov
f21d2ce757
Better phpdoc
2014-01-19 03:44:33 +04:00