Commit Graph

66 Commits

Author SHA1 Message Date
Carsten Brandt
0208f289c3 fixed test breaks 2014-06-04 19:12:18 +02:00
Carsten Brandt
d92281dcda refactored ActiveRecord::unlinkAll() to work will noSQL
issue #3520
2014-06-04 14:28:57 +02:00
Alexander Makarov
0003b10b02 ElasticSearch tests fix 2014-06-02 18:14:02 +04:00
NmDimas
95d2b29bff Change unit test to Unlink and add test to unlinkAll 2014-06-01 22:40:05 +03: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
f7a6cb9f7a Refactored AR tests. 2014-03-30 20:46:25 -04:00
Alexander Makarov
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +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
af030c5f5b Added $skipIfSet to ActiveRecord::loadDefaultValues 2014-03-20 19:43:59 +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
bcf5b4644e Fixes #2687: ActiveQuery::joinWith() has problem when the query is used twice. 2014-03-10 21:44:48 -04:00
AlexGx
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02: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
Carsten Brandt
683a46d9ee test for deeply nested relation
close #2543
2014-02-25 15:03:54 +01:00
Qiang Xue
c92a260a3d Fixes #2415: Added support for inverse relations 2014-02-18 19:43:05 -05:00
Alexander Makarov
dd26d39dd8 Removed unused namespace imports 2014-02-07 13:26:00 +04:00
Luciano Baraglia
7d33a5d3b5 Some Code style fixes 2014-01-19 13:35:36 -03:00
Qiang Xue
c4c328dc92 Fixes #1791: support ON condition for relational query. 2014-01-06 23:56:58 -05:00
Qiang Xue
795a09c27a Fixes #1791: joinWithRelation using table alias. 2014-01-05 17:42:40 -05:00
Qiang Xue
0345191245 Added ActiveQuery::innerJoinWith(). 2013-12-24 21:27:13 -05:00
Qiang Xue
4f44bb2416 Fixes #1581: Added ActiveQuery::joinWith() to support joining with relations 2013-12-24 00:08:49 -05:00
Qiang Xue
2402d2d031 Draft implementation of ActiveQuery::joinWith(). 2013-12-23 22:26:44 -05:00
Qiang Xue
164ddf98b0 Fixed test break. 2013-12-04 00:06:01 -05:00
Qiang Xue
b868e91fee Fixed test break. 2013-12-03 23:52:21 -05:00
Carsten Brandt
643593737d added test case for #1310 2013-11-24 20:45:50 +01:00
Carsten Brandt
f017ba357f refactored unit tests. put common AR tests in trait 2013-11-24 19:18:16 +01:00
Carsten Brandt
c6347d6d01 polished elasticsearch AR api, added mget and fixed AR::equals() 2013-11-23 15:26:00 +01:00
Carsten Brandt
bc4324c041 Merge branch 'master' into redis
* master: (613 commits)
  fixed typo
  Fixes #1222: refactored jui/Widget, intorduced jui/Slider and jui/SliderInput
  Correct Nav.php comments/PHP doc to reflect BS3 dropdown support.
  Correct Nav.php comments/PHP doc to reflect BS3 dropdown support.
  Correct Nav.php comments/PHP doc to reflect BS3 dropdown support.
  Added example for dividers to bootstrap Nav
  Checkboxlist documentation fix
  Added "Using controller action to render errors"
  Fix doc
  Renamed DetailView attribute type to format
  encode email in Formatter
  Added default status code setting.
  "yii\swiftmailer\Mailer" transport setup has been advanced to support constructor arguments and plugins.
  fix rbac select statement
  Comments cleanup.
  Reverted closeButton
  Nomenclature and code realignment.
  better nginx config
  guide about using bootstrap less files
  Include Schema in new migrations by default
  ...

Conflicts:
	framework/yii/db/ActiveRecord.php
	framework/yii/db/ActiveRelation.php
	tests/unit/data/config.php
2013-11-22 15:04:08 +01:00
Carsten Brandt
77840adf65 Made ActiveRecord::isPrimaryKey() public
+ added tests and fixed behavior
2013-11-16 16:53:50 +01:00
Carsten Brandt
9448c3d471 added unit tests for active dataprovider and fixed query tests 2013-11-13 19:35:44 +01:00
slavcodev
b0b1c27c85 Fix phpDoc var tag format 2013-11-12 06:21:04 +02:00
Carsten Brandt
ee1689da03 some more on active record unit tests and sqlite
sqlite does not seem to allow using boolean values in select query
2013-11-01 17:57:28 +01:00
Carsten Brandt
e5a1244e0f moved unit test from cubrid to general
should be tested for all dbms not only cubrid even if the problem may
not exist in all of them it is good to verify that.
2013-11-01 16:46:41 +01:00
Carsten Brandt
34945b0b69 added unit test to verify storing of null values
http://www.yiiframework.com/forum/index.php/topic/48359-inserting-nulls/page__view__findpost__p__226019
2013-10-29 18:27:20 +01:00
Carsten Brandt
c62e0cbbfb added unit test to verify AR afterSave isNewRecord value
closes #1084
2013-10-28 10:48:18 +01:00
Alexander Makarov
ee2af2661c Removed unneeded use statements 2013-10-24 03:12:25 +04:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
Carsten Brandt
b42f4b4ea0 fixed broken test 2013-09-25 12:45:07 +02:00
Carsten Brandt
3623fc19dc refactored redis AR pk and findByPk 2013-09-24 19:04:38 +02:00