Commit Graph

213 Commits

Author SHA1 Message Date
Carsten Brandt
c6201fb5ca fixed cubrid test case 2014-05-26 13:43:42 +02:00
Carsten Brandt
d1a3d40014 added test case to acually create cols with virtual type
verify issue #3473
2014-05-26 11:53:06 +02:00
Qiang Xue
3411504508 Revert "Fixed test break."
This reverts commit 70b57766b1.
2014-05-14 11:40:46 -04:00
Qiang Xue
70b57766b1 Fixed test break. 2014-05-14 11:29:48 -04:00
Alexander Makarov
a17e5582cd Marked part of PostgreSQL test as incomplete 2014-05-07 21:25:19 +04:00
Alexander Makarov
5cb243025a Merge branch 'master' 2014-05-07 04:04:49 +04:00
Alexander Makarov
905e39ede9 RBAC migration is now aware of custom table names, speeded up RBAC tests 2014-05-07 00:19:33 +04:00
Alexander Makarov
48dbde3911 Fixed PostgreSQL test 2014-05-06 19:14:10 +04:00
Alexander Makarov
ca23cd8a2c Implemented throwing \yii\db\IntegrityException on DB integrity errors 2014-05-06 18:26:27 +04:00
Alexander Makarov
b86f5a14f7 #2435 Tests for integrity exception 2014-05-06 16:56:51 +04:00
Carsten Brandt
5c748ddb42 added case insensitve LIKE to PostgresQueryBuilder
fixes #3252

also improved unit tests for querybuilder buildLikeCondition
2014-04-29 12:04:10 +02:00
Alex-Code
80067204c8 test for addSelect method. 2014-04-08 12:11:55 +01:00
Alexander Makarov
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
Qiang Xue
581aad8e22 Fixed test break. 2014-04-04 10:25:08 -04:00
Carsten Brandt
1a3accb6cb removed duplicated joins when using joinWith and via relations
fixes #2650
2014-04-04 15:34:19 +02:00
Qiang Xue
0fa19291f1 refactored filterWhere(). 2014-04-02 20:03:42 -04:00
Carsten Brandt
03e208e59d removed wrong test 2014-04-02 21:39:53 +02:00
Carsten Brandt
745c20538c Merge pull request #2885 branch 'query-filter'
* query-filter:
  added CHANGELOG lines
  added tests for redis
  added proper tests for elasticsearch
  removed unnecessary code duplication
  adjusted tests
  typo
  renamed Query::filter() to Query::filterWhere()
  reverted elasticsearch rename of filter
  Adjusted search model code generated by Gii CRUD generator
  Added support for arbitrary number of parameters for NOT, AND, OR in filter methods of Query
  Gii CRUD generator now uses new addFilter method
  Query::filter() adjustments
  fixes #2002
  Added tests for Query::filter()

Conflicts:
	framework/db/QueryTrait.php
2014-04-02 19:33:40 +02:00
Carsten Brandt
c572c23c2f adjusted tests 2014-04-02 18:56:49 +02:00
Carsten Brandt
96f1c4c10b renamed Query::filter() to Query::filterWhere() 2014-04-02 18:48:14 +02:00
Alexander Makarov
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
Qiang Xue
f7a6cb9f7a Refactored AR tests. 2014-03-30 20:46:25 -04:00
Alexander Makarov
ecf019e311 Merge branch 'master' 2014-03-31 02:20:56 +04:00
Alexander Makarov
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +04:00
Alexander Makarov
8cd247730a Query::filter() adjustments 2014-03-29 23:26:02 +04:00
Alexander Makarov
372220450b Merge branch 'master' 2014-03-27 12:56:01 +04:00
Alexander Makarov
3c1a8141fd fixes #2002 2014-03-27 12:41:16 +04:00
Qiang Xue
636042b9b3 Fixed test break. 2014-03-26 16:16:39 -04:00
Qiang Xue
39667aa6b7 Fixed activequery select issue. 2014-03-26 15:51:10 -04:00
Qiang Xue
bc378d1cae properly quote table names for join(). 2014-03-26 15:02:56 -04:00
Qiang Xue
21bc29560c Fixed test break. 2014-03-26 12:50:58 -04:00
Qiang Xue
78136d4278 Fixes #2880: filterByModels() should prefix key columns in a join query. 2014-03-26 11:19:01 -04:00
Alexander Makarov
19327ebd14 Added tests for Query::filter() 2014-03-26 17:09:16 +04:00
Alexander Makarov
af030c5f5b Added $skipIfSet to ActiveRecord::loadDefaultValues 2014-03-20 19:43:59 +04:00
Alexander Makarov
f40011abc4 Fixed CubridCommandTest::testBindParamValue 2014-03-20 15:43:32 +04:00
Alexander Makarov
aece6d309e Adjusted test for cubrid 2014-03-20 14:27:47 +04:00
Alexander Makarov
5c3e4fa4ba Adjusted unit tests, added description to docs 2014-03-19 23:07:56 +04:00
Alexander Makarov
b66427f8c7 Fixes #2726: ActiveRecord now fills default values on creating new instance of the model if defaults are available from DB schema 2014-03-19 18:06:20 +04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Qiang Xue
e5031dfd5f test break fix. 2014-03-14 23:17:04 -04:00
Qiang Xue
9ff8b0f903 Fixes #2571: Fixed the bug that batchInsert will fail for SQLite if the values contain null or boolean false;
Fixes #2683: Fixed the bug that batchInsert will fail for MySQL if the values contain boolean false.
2014-03-14 22:48:20 -04:00
Qiang Xue
bcf5b4644e Fixes #2687: ActiveQuery::joinWith() has problem when the query is used twice. 2014-03-10 21:44:48 -04:00
Carsten Brandt
4384a96812 Merge pull request #2667 from AlexGx/tests-codestyle-fix
Tests codestyle fix
2014-03-09 03:06:39 +01:00
Luciano Baraglia
269d1303a9 Code style fixes 2014-03-08 20:47:04 -03:00
AlexGx
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02:00
Alexander Mohorev
95ea1c20bb code style. FOREACH 2014-03-03 21:47:47 +03:00
Alexander Mohorev
c7e8d8b900 @param, @var, @property and @return must declare types as boolean, integer, string, array or null 2014-03-03 20:50:44 +03:00
Qiang Xue
b9743ef65b fixed test break. 2014-03-01 19:35:00 -05:00
Qiang Xue
a2edf01c85 Delay joinWith till createCommand to correctly combine relation condition with primary condition. 2014-03-01 18:39:22 -05:00
Carsten Brandt
c21e01930e added unit test for #2568 2014-02-27 15:13:51 +01:00