Commit Graph

155 Commits

Author SHA1 Message Date
Carsten Brandt
78a29271c7 changed cubrid test config to default setup 2014-04-22 23:25:12 +02:00
Carsten Brandt
cf1ada15ef Merge branch 'master' into kadishmal-cubrid-database-support
* master: (789 commits)
  'summaryTagName' and 'emptyCssClass' options added to CBaseListView
  Missing entries added to CHANGELOG
  'cli' mode detection at 'CConsoleApplication' fixed
  Eager loading note added to 'Relational Query Options' docs
  Fix CSysLogRoute.php file comment
  Fixes #3324: add syslog support
  CDbConnection ODBC related fixes before merging
  Add ODBC to the requirements checker
  Fix #132: CDbConnection now supports ODBC
  Better fix for <script async="false"
  Fixed #3258
  Fixed #3283
  Remove async from list of Special Attributes so that it is possible to use async=false per issue: #3314
  typo fix in guide
  COciSchema: read column comments from another schema
  Update yii.php
  Add changes #3298 to CHANGELOG
  Added check for the existence of a link href attribute pager
  Added check for the existence of a link href attribute pager
  Update yii.php
  ...
2014-04-22 23:12:34 +02:00
resurtm
1cdc9d567a Fix #132: CDbConnection now supports ODBC 2014-04-09 16:06:52 +06:00
Carsten Brandt
70e92c1074 fixed wrong unit test 2014-01-28 15:39:09 +01:00
Carsten Brandt
c0288615fc Added CDbCommand::naturalLeftJoin() and naturalRightJoin()
fixes #3068, fixes #3070, fixes #3075
2014-01-28 13:03:18 +01:00
Carsten Brandt
3d4b19e018 Merge pull request #2803 from nineinchnick/788-postgresql-createindex
use the preffered method of creating an unique index in postgresql
2014-01-28 03:30:23 -08:00
Carsten Brandt
1273438eee Merge PR #2885 branch 'revert-2048' of https://github.com/cebe/yii
* 'revert-2048' of https://github.com/cebe/yii:
  added changelog line for #2884
  added unit test for #2884
  fixed wrong dependency in unit test
  reverted #2048 as it breaks logic in createFindCommand()

Conflicts:
	CHANGELOG
2014-01-28 12:00:04 +01:00
ptarjan
9acbdc7f3e add missing includes 2013-11-20 17:39:50 -08:00
Paul Klimov
a49e82999b Added support for scopes in CStatRelation 2013-10-02 15:37:56 +03:00
Carsten Brandt
dee34ca54d added unit test for #2884 2013-09-18 14:00:37 +02:00
Carsten Brandt
fbaf2d90ce fixed wrong dependency in unit test 2013-09-18 14:00:12 +02:00
Alexander Makarov
0ee1539601 Fixed PostgreSQL tests 2013-09-15 15:20:51 +04:00
John Was
dfef2cd9d4 added test for PostgreSQL 2013-09-14 18:40:22 +02:00
Carsten Brandt
480b08f50f fixed test break for php < 5.3.0 2013-09-04 15:07:46 +02:00
Carsten Brandt
f5e592f22d better fix for #2378 2013-09-04 15:05:17 +02:00
Carsten Brandt
10b4b0f063 Merge branch '2738-ActiveRecord.tableName' of https://github.com/velosipedist/yii into velosipedist-2738-ActiveRecord.tableName
* '2738-ActiveRecord.tableName' of https://github.com/velosipedist/yii:
  removed occasional FormInput file
  fix #2378 CActiveRecord::tableName() in namespaced model
  Ability to substitute model attribute name, to use custom data getter. It is not dangerous to use any custom fields and getters, because it will work for read-only.
2013-09-04 14:54:35 +02:00
Paul Klimov
363fb4de81 Unit test CActiveRecordTest has been adjusted. 2013-08-29 12:09:23 +03:00
Paul Klimov
11c774b0bb Merge branch '268-cdbcriteria-count' of https://github.com/nineinchnick/yii into nineinchnick-268-cdbcriteria-count 2013-08-29 11:56:38 +03:00
Zander Baldwin
737cb4a081 Update Framework Unit Tests
Update the frameworks unit tests to check incoming data types for the column names of CDbSchema::createIndex() and CDbSchema::addForeignKey().
2013-08-26 16:31:20 +01:00
John Was
da68e9ab13 use the preffered method of creating an unique index in postgresql as suggested by the manual 2013-08-21 23:08:32 +02:00
John Was
bb07a7abdd detect properly if criteria->select starts with a count() expression in CActiveFinder->count() method 2013-08-21 21:45:08 +02:00
Carsten Brandt
132b4fd612 added unit test to verify behavior for #2756 2013-08-14 23:49:48 +02:00
velosipedist
8dd39e27a1 fix #2378 CActiveRecord::tableName() in namespaced model 2013-08-07 20:20:42 +04:00
Klimov Paul
63a3e57cc4 PR #2569 has been reverted. 2013-06-26 00:07:48 +03:00
Paul Klimov
ccc0a45022 Test case "CActiveRecordTest::testCustomAttributes()" has been added. 2013-06-25 11:23:43 +03:00
Alexander Kochetov
cd30acdecc Unit tests 2013-06-04 04:58:19 +04:00
Carsten Brandt
f8de04a066 Added unit test for #2530 2013-06-03 08:14:03 +02:00
resurtm
c1161ad73e Merge branch 'master' of github.com:yiisoft/yii into fixes-2336
Conflicts:
	CHANGELOG
	tests/framework/db/ar/CActiveRecord2Test.php
2013-05-28 21:06:37 +06:00
Carsten Brandt
aebaff34c5 Merge pull request #2346 branch '662-lazy-load-through-relation' of https://github.com/klimov-paul/yii
* '662-lazy-load-through-relation' of https://github.com/klimov-paul/yii:
  Issue #662 has been added to CHANGELOG.
  "CActiveFinder::applyLazyCondition()" has been updated to use last relation in the join chain, while composing where condition.
  Test case for issue #662 has been improved.
  Test case "CActiveRecordTest::testHasOneThroughLazy()" has been added to expose issue #662

Conflicts:
	tests/framework/db/ar/CActiveRecordTest.php
2013-05-27 05:06:23 +02:00
Carsten Brandt
3fe3338091 Unit tests for #2311 2013-05-27 04:11:21 +02:00
Carsten Brandt
ffe6b94f7b Merge pull request #2350 branch '139-has-many-through-with-condition' of https://github.com/klimov-paul/yii into klimov-paul-139-has-many-through-with-condition
* '139-has-many-through-with-condition' of https://github.com/klimov-paul/yii:
  Test relation condition for "CActiveRecordTest::testLazyLoadThroughRelationWithCondition()" has been adjusted to be type aware.
  "CJoinElement::applyLazyCondition()" and "CActiveRecordTest" have been updated to match PHP 5.2.
  Issue #139 has been added to CHANGELOG.
  "CJoinElement::applyLazyCondition()" has been updated allowing to respect relation condition and params.
  Test case "CActiveRecordTest::testLazyLoadThroughRelationWithCondition()" has been improved to cover relation params as well.
  Test case "CActiveRecordTest::testLazyLoadThroughRelationWithCondition()" has been created to expose issue #139

Conflicts:
	tests/framework/db/ar/CActiveRecordTest.php
2013-05-27 03:50:05 +02:00
Carsten Brandt
e7b7cd0291 Support for MySQL BIT(M) data type default values
replaces pull request #1842

CMysqlColumnSchema: support for MySQL BIT(M) data type proper default
values.
For example, MySQL (MariaDB) return default value as "b'1'" string, not
as "1", so, this case should be considered especially. See also
http://dev.mysql.com/doc/refman/5.0/en/bit-type.html
2013-05-27 02:45:25 +02:00
Paul Klimov
da49c8812b Merge pull request #2295 from klimov-paul/101-active-record-relation-merge-with
Issue 101: Active Record find through with custom select
2013-05-22 10:07:42 -07:00
resurtm
0f54eb0dee Fixes #2426: CDbCriteria::__wakeup() used to issue an error in case SQL containing fields were arrays and criteria parameters were specified. 2013-05-04 22:37:14 +06:00
resurtm
49598e9f4c Merge pull request #2306 from resurtm/fixes-2122
Fixes #2122: CActiveRecord, lazy load: 'params' from relations used in 'through' option were not applied to the final SQL statement.
2013-04-25 20:18:57 -07:00
Paul Klimov
72313fdf18 Test relation condition for "CActiveRecordTest::testLazyLoadThroughRelationWithCondition()" has been adjusted to be type aware. 2013-04-23 16:44:58 +03:00
Paul Klimov
b2b9c3fcd2 "CJoinElement::applyLazyCondition()" and "CActiveRecordTest" have been updated to match PHP 5.2. 2013-04-16 10:51:40 +03:00
Paul Klimov
a99a93769d Test case "CActiveRecordTest::testLazyLoadThroughRelationWithCondition()" has been improved to cover relation params as well. 2013-04-15 17:03:42 +03:00
Paul Klimov
9a3e956d3a Test case "CActiveRecordTest::testLazyLoadThroughRelationWithCondition()" has been created to expose issue #139 2013-04-15 16:14:52 +03:00
resurtm
1ac4b0a2b3 Removed debugging group declaration. 2013-04-15 18:50:01 +06:00
resurtm
bd0483cfc5 Fixes #2336: PostgreSQL: CDbCommandBuilder uses NULL instead of DEFAULT as default value for the primary keys of serial type. 2013-04-15 18:42:41 +06:00
Paul Klimov
3bfb6a0246 Test case for issue #662 has been improved. 2013-04-15 12:46:00 +03:00
Paul Klimov
1721f026f3 Test case "CActiveRecordTest::testHasOneThroughLazy()" has been added to expose issue #662 2013-04-15 11:30:46 +03:00
Paul Klimov
c6b10c56b7 Merge pull request #2285 from klimov-paul/db-command-builder-insert-multiple
Enh #1604: CDbCommandBuilder supports multiple insertion
2013-04-08 01:07:53 -07:00
resurtm
e2425fe6a9 Fixes #2122: CActiveRecord, lazy load: 'params' from relations used in 'through' option were not applied to the final SQL statement. 2013-04-06 12:42:35 +06:00
resurtm
6533997042 CActiveRecord unit tests models: added properties PHPDocs. 2013-04-06 11:22:11 +06:00
Klimov Paul
cec25cac38 "CSqliteCommandBuilderTest" has been merged into "CSqliteTest".
"COciCommandBuilderTest" has been merged into "COciTest".
2013-04-04 21:30:29 +03:00
Paul Klimov
45d7835391 Test case "CActiveRecordTest::testHasManyThroughHasManyWithCustomSelect()" has been added to expose issue #101 2013-04-04 11:38:29 +03:00
Klimov Paul
4efa573f53 Method "COciCommandBuilder::createMultipleInsertCommand()" has been created. 2013-04-02 21:32:53 +03:00
Klimov Paul
ea56bbe56c Method "CSqliteCommandBuilder::createMultipleInsertCommand()" has been created. 2013-04-02 21:18:44 +03:00