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
Qiang Xue
febce76397
fixed build break and fixed doc about exists/not exists.
11 years ago
Qiang Xue
7d08a09620
Fixes #1809 : Added support for building "EXISTS" and "NOT EXISTS" query conditions
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Carsten Brandt
baac7e14df
moved classes from framework -> yii
12 years ago
resurtm
f2e6d408e3
MSSQL driver classes moved to the proper location.
12 years ago
Rusinov Maxim
d712605a71
Added and resolved Sqlite tests #15 .
12 years ago
Qiang Xue
0d814fa523
Moved "framework" to "iii".
12 years ago
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
12 years ago
Dev-Speranza
6ed419849e
Fix $schemaMap declaration for Mssql driver
12 years ago
Anderson Müller
78b6607c11
Fixes doc block in findWith method of ActiveRelation
12 years ago
Anderson Müller
45e987d26c
Typo in isNewRecord property of ActiveRecord
12 years ago
Qiang Xue
55cc8813c7
Fixes issue #171
12 years ago
Alexander Kochetov
684295fe0b
Fixes
12 years ago
Alexander Kochetov
48d04fbb8c
!== array() => !empty()
12 years ago
Alexander Kochetov
d7df7053e0
=== array() => empty()
12 years ago
Alexander Kochetov
e3f6faf575
&& => || fix
12 years ago
Alexander Kochetov
37f3a400cd
ActiveRecord::getRelation() bugfix
12 years ago
Alexander Kochetov
f12518f45c
ActiveRecord::insert() and ActiveRecord::update() refactoring
12 years ago
Qiang Xue
f3c17594c6
Fixes issue #155 .
12 years ago