Qiang Xue
f59598bb8b
Added support for building SQLs with sub-queries
11 years ago
Carsten Brandt
8af941fb53
added note about usage to AR::instantiate()
...
fixes #2370
11 years ago
Alexander Makarov
dd26d39dd8
Removed unused namespace imports
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
Alexander Makarov
eb3c6866dd
Removed unused variable
11 years ago
Carsten Brandt
4a9f47bedd
refactored sphinx and db AR to call parent implementation of populateRecord()
11 years ago
Carsten Brandt
16e1aff41b
renamed ActiveRecord::create() to populateRecord()
...
- refactored elasticsearch AR to make type and index available in
instantiate(), issue #1313
fixes #2281
11 years ago
Qiang Xue
266aadd230
Only treat 32bit signed integers as integers so that 32bit clients won’t have trouble.
11 years ago
Qiang Xue
8001d2348c
refactored ActiveRecord::create().
11 years ago
Vladimir Zbrailov
a97f6387f9
added check column
11 years ago
Vladimir Zbrailov
0e0acb2731
added inherit doc block and task number
11 years ago
Vladimir Zbrailov
3319b54c80
added inherit doc block and task number
11 years ago
Alexander Makarov
c2e0b5beb5
Optimized forms code a bit
11 years ago
Vladimir Zbrailov
d017567273
override create
11 years ago
Vladimir Zbrailov
903f5618fe
Added typecast database types into php types
11 years ago
Alexander Makarov
b21fd298c5
Fixed minor coding style issues
11 years ago
Qiang Xue
8e11629a65
Fixes #2160 : SphinxQL does not support OFFSET
...
Improved `QueryBuilder::buildLimit()` to support big numbers
11 years ago
Qiang Xue
8ecceb395f
Fixes #2210 : Mysql driver will now treat `tinyint(1)` as integer instead of boolean
11 years ago
Carsten Brandt
262189533a
huge amount of documentation link fixes
11 years ago
Carsten Brandt
e27c3872ed
doc improvements
11 years ago
Qiang Xue
2be0fd6e13
more union fix.
11 years ago
Qiang Xue
d9a85d091a
Fixes #2175 : QueryBuilder will now append UNION statements at the end of the primary SQL
11 years ago
Alexander Makarov
ee8c0404bf
minor code style and phpdoc fix
11 years ago
Qiang Xue
f6dd6fa2e9
Renamed `ActiveRecordInterface::createActiveRelation()` to `createRelation()`
11 years ago
Anatoliy Miller
9c97fe11cb
issue #1659 : released buildLimitOffset() for MSSQL
11 years ago
Ivan Pomortsev
a9286b899c
Update QueryBuilder.php
...
Change <code>array_reduce</code> with anonimous function variant to easy string collection from pieces of unions.
11 years ago
Ivan Pomortsev
c9c59bdc26
Update Query.php
...
Using short array syntax.
11 years ago
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.
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
5d3fd930d8
Update QueryBuilder.php
...
Delete some spaces from result string.
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
Ivan Pomortsev
1ea895e22b
Update QueryBuilder.php
...
Fixed some errors – syntax with ";" after closure function and also moved building of unions queries into this function.
11 years ago
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.
11 years ago
Qiang Xue
5b3fa9f5ba
Fixes #2091 : `QueryBuilder::buildInCondition()` fails to handle array not starting with index 0
11 years ago
Luciano Baraglia
13aa88bc5b
Fix for #2087
11 years ago
Luciano Baraglia
7d33a5d3b5
Some Code style fixes
11 years ago
Alexander Makarov
f21d2ce757
Better phpdoc
11 years ago
Qiang Xue
87be9deaf0
refactored fixture.
11 years ago
Vladimir
d5cd6b0dfe
Update Migration.php
...
add ability to use an array in multi columns parameters
11 years ago
Alexander Makarov
b119576041
Fixes #2016 : removed ability to declare scopes in ActiveRecord leaving it to ActiveQuery. Changed documentation accordingly.
11 years ago
Qiang Xue
eade9dd115
message fix.
11 years ago
Qiang Xue
9b723baa76
Added `TableSchema::fullName` property
11 years ago
Carsten Brandt
7e961eee85
fixed test break
11 years ago
Carsten Brandt
829850da23
removed phpdoc about nonexisting param
11 years ago
Carsten Brandt
796284cba1
reworked fix for #1993
11 years ago
Carsten Brandt
81d23332df
afterFind event in AR is now called after relations have been populated
...
fixes #1993
11 years ago
Alexander Makarov
5d23a066ca
Removed unused imports
11 years ago
Alexander Makarov
349f2c9e32
phpdoc fixes, unused variable
11 years ago
Alexander Makarov
c3829a4fd0
Removed debug code
11 years ago