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
Qiang Xue
87be9deaf0
refactored fixture.
2014-01-18 16:18:33 -05:00
Vladimir
d5cd6b0dfe
Update Migration.php
...
add ability to use an array in multi columns parameters
2014-01-18 17:12:20 +03:00
Alexander Makarov
b119576041
Fixes #2016 : removed ability to declare scopes in ActiveRecord leaving it to ActiveQuery. Changed documentation accordingly.
2014-01-17 22:07:02 +04:00
Qiang Xue
eade9dd115
message fix.
2014-01-16 20:39:06 -05:00
Qiang Xue
9b723baa76
Added TableSchema::fullName property
2014-01-16 15:51:14 -05:00
Carsten Brandt
7e961eee85
fixed test break
2014-01-16 11:50:59 +01:00
Carsten Brandt
829850da23
removed phpdoc about nonexisting param
2014-01-16 11:07:50 +01:00
Carsten Brandt
796284cba1
reworked fix for #1993
2014-01-16 11:05:26 +01:00
Carsten Brandt
81d23332df
afterFind event in AR is now called after relations have been populated
...
fixes #1993
2014-01-16 10:28:58 +01:00
Alexander Makarov
5d23a066ca
Removed unused imports
2014-01-12 23:42:55 +04:00
Alexander Makarov
349f2c9e32
phpdoc fixes, unused variable
2014-01-12 23:40:21 +04:00
Alexander Makarov
c3829a4fd0
Removed debug code
2014-01-12 23:39:42 +04:00
Qiang Xue
febce76397
fixed build break and fixed doc about exists/not exists.
2014-01-11 10:17:14 -05:00
Qiang Xue
7d08a09620
Fixes #1809 : Added support for building "EXISTS" and "NOT EXISTS" query conditions
2014-01-11 08:35:43 -05:00
Qiang Xue
0c38655217
psr-4 move
2014-01-10 21:41:43 -05:00
Qiang Xue
0d814fa523
Moved "framework" to "iii".
2013-05-09 12:00:15 -04:00
Carsten Brandt
776162b05e
created StringHelper::basename()
...
In contrast to php function basename() It that always uses \ and /
as directory separator.
It is needed for use on Classnames that contain namespaces.
Fixes #192
2013-05-09 13:16:40 +02:00
Dev-Speranza
6ed419849e
Fix $schemaMap declaration for Mssql driver
2013-05-09 02:40:02 +03:00
Qiang Xue
11bebaa8bf
Merge pull request #184 from andersonamuller/patch-1
...
Typo in isNewRecord property of ActiveRecord
2013-05-08 10:20:21 -07:00
Anderson Müller
78b6607c11
Fixes doc block in findWith method of ActiveRelation
2013-05-08 19:14:35 +02:00
Anderson Müller
45e987d26c
Typo in isNewRecord property of ActiveRecord
2013-05-08 20:09:34 +03:00