Commit Graph

38 Commits

Author SHA1 Message Date
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
Carsten Brandt
949dda5fdb tagged tests with @group tags 2013-09-14 12:49:47 +02:00
Alexander Makarov
0596fa82fd code style fixes 2013-08-13 02:43:47 +04:00
Qiang Xue
53a1f9608a Added unit test for ActiveDataProvider. 2013-07-09 08:47:19 -04:00
Qiang Xue
aa568aacb5 Added support for using callables as "ActiveQuery::indexBy". 2013-07-08 21:25:00 -04:00
Qiang Xue
f2e57b2eec Fixed test breaks. 2013-07-02 22:19:05 -04:00
Alexander Makarov
7cd9123c3b Tests cleanup
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
2013-05-24 18:35:00 +04:00
Carsten Brandt
cb8f5d702f cleanup tests 2013-05-11 12:51:24 +02:00
Rusinov Maxim
d712605a71 Added and resolved Sqlite tests #15. 2013-05-09 23:12:18 +06:00
Zander Baldwin
4be9e195c2 Add Newlines
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
Qiang Xue
b51d347465 Added count, average, sum, min, max, scalar methods to ActiveQuery.
Added support for scopes defined in AR classes.
2013-01-17 19:26:20 -05:00
Qiang Xue
5d90e6da80 removed scopes.
finished AR documentation.
2013-01-14 20:19:08 -05:00
Qiang Xue
3ca50f3043 clean up AR 2013-01-13 10:23:03 -05:00
Qiang Xue
46ab456f4e finished new AR. 2013-01-12 23:16:26 -05:00
Qiang Xue
c9b104f0a1 refactored AR relation. 2013-01-09 16:50:17 -05:00
Qiang Xue
0e3e2698d7 cleanup of AR 2013-01-09 11:13:49 -05:00
Qiang Xue
d15378ef43 moved db tests. 2013-01-05 21:29:42 -05:00