62 Commits

Author SHA1 Message Date
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
581aad8e22 Fixed test break. 2014-04-04 10:25:08 -04:00
1a3accb6cb removed duplicated joins when using joinWith and via relations
fixes #2650
2014-04-04 15:34:19 +02:00
f7a6cb9f7a Refactored AR tests. 2014-03-30 20:46:25 -04:00
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +04:00
636042b9b3 Fixed test break. 2014-03-26 16:16:39 -04:00
39667aa6b7 Fixed activequery select issue. 2014-03-26 15:51:10 -04:00
bc378d1cae properly quote table names for join(). 2014-03-26 15:02:56 -04:00
21bc29560c Fixed test break. 2014-03-26 12:50:58 -04:00
78136d4278 Fixes #2880: filterByModels() should prefix key columns in a join query. 2014-03-26 11:19:01 -04:00
af030c5f5b Added $skipIfSet to ActiveRecord::loadDefaultValues 2014-03-20 19:43:59 +04:00
aece6d309e Adjusted test for cubrid 2014-03-20 14:27:47 +04:00
5c3e4fa4ba Adjusted unit tests, added description to docs 2014-03-19 23:07:56 +04:00
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
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
bcf5b4644e Fixes #2687: ActiveQuery::joinWith() has problem when the query is used twice. 2014-03-10 21:44:48 -04:00
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02:00
b9743ef65b fixed test break. 2014-03-01 19:35:00 -05:00
a2edf01c85 Delay joinWith till createCommand to correctly combine relation condition with primary condition. 2014-03-01 18:39:22 -05:00
c21e01930e added unit test for #2568 2014-02-27 15:13:51 +01:00
683a46d9ee test for deeply nested relation
close #2543
2014-02-25 15:03:54 +01:00
c92a260a3d Fixes #2415: Added support for inverse relations 2014-02-18 19:43:05 -05:00
dd26d39dd8 Removed unused namespace imports 2014-02-07 13:26:00 +04:00
7d33a5d3b5 Some Code style fixes 2014-01-19 13:35:36 -03:00
c4c328dc92 Fixes #1791: support ON condition for relational query. 2014-01-06 23:56:58 -05:00
795a09c27a Fixes #1791: joinWithRelation using table alias. 2014-01-05 17:42:40 -05:00
0345191245 Added ActiveQuery::innerJoinWith(). 2013-12-24 21:27:13 -05:00
4f44bb2416 Fixes #1581: Added ActiveQuery::joinWith() to support joining with relations 2013-12-24 00:08:49 -05:00
2402d2d031 Draft implementation of ActiveQuery::joinWith(). 2013-12-23 22:26:44 -05:00
164ddf98b0 Fixed test break. 2013-12-04 00:06:01 -05:00
b868e91fee Fixed test break. 2013-12-03 23:52:21 -05:00
643593737d added test case for #1310 2013-11-24 20:45:50 +01:00
f017ba357f refactored unit tests. put common AR tests in trait 2013-11-24 19:18:16 +01:00
c6347d6d01 polished elasticsearch AR api, added mget and fixed AR::equals() 2013-11-23 15:26:00 +01:00
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
77840adf65 Made ActiveRecord::isPrimaryKey() public
+ added tests and fixed behavior
2013-11-16 16:53:50 +01:00
9448c3d471 added unit tests for active dataprovider and fixed query tests 2013-11-13 19:35:44 +01:00
b0b1c27c85 Fix phpDoc var tag format 2013-11-12 06:21:04 +02:00
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
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
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
c62e0cbbfb added unit test to verify AR afterSave isNewRecord value
closes #1084
2013-10-28 10:48:18 +01:00
ee2af2661c Removed unneeded use statements 2013-10-24 03:12:25 +04:00
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
b42f4b4ea0 fixed broken test 2013-09-25 12:45:07 +02:00
3623fc19dc refactored redis AR pk and findByPk 2013-09-24 19:04:38 +02:00
949dda5fdb tagged tests with @group tags 2013-09-14 12:49:47 +02:00
0596fa82fd code style fixes 2013-08-13 02:43:47 +04:00
53a1f9608a Added unit test for ActiveDataProvider. 2013-07-09 08:47:19 -04:00
aa568aacb5 Added support for using callables as "ActiveQuery::indexBy". 2013-07-08 21:25:00 -04:00