Commit Graph

60 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Paul Klimov
45d7835391 Test case "CActiveRecordTest::testHasManyThroughHasManyWithCustomSelect()" has been added to expose issue #101 2013-04-04 11:38:29 +03:00
Esen Sagynov
c0b90c73bb CUBRID Database 9.0 Support. 2012-12-26 21:30:30 +09:00
resurtm
126722fd46 Merge branch 'master' of git://github.com/yiisoft/yii into oci-unit-tests 2012-09-08 13:10:29 +06:00
Carsten Brandt
c658823737 unit test for scenario described in #507
passing with current code, so not reproduceable
2012-09-07 17:58:25 +02:00
Carsten Brandt
f3e7a8f006 need to move beforeFindInternal() after adding scopes
fix #1102 was not 100% correct as it was not possible to apply
additional scopes in relation definition and query criteria.
2012-09-07 17:06:53 +02:00
resurtm
6a2c0dfa07 COciTest: temporary removed problem places. 2012-09-04 22:22:26 +06:00
resurtm
6bf7cc5416 Merge branch 'master' of git://github.com/yiisoft/yii into oci-unit-tests
Conflicts:
	CHANGELOG
2012-09-04 21:40:27 +06:00
Carsten Brandt
00dc4add94 fixes issue #1330
default value null for string column in SQLite
2012-09-04 03:12:18 +02:00
Carsten Brandt
8502333cad added unit test for issue #1330
unit test is currently failing
2012-09-04 02:44:22 +02:00
Carsten Brandt
33ebfd63e8 fixes #1326, added unit tests for #741 2012-09-03 21:33:48 +02:00
Carsten Brandt
be1fbf1982 Merge branch 'master' into 93-relational-beforefind-criteria-modification
* master: (180 commits)
  Updated changelog with last-modified date change.
  Changed the CHttpCacheFilter to use RFC 1123 complaint dates when returning the last-modified header.
  tabs...
  gii: better default validation "length" rule for fixed-point / floating-point field type (MYSQL)
  fixes #1319
  updated comment in CHttpSession
  Update framework/YiiBase.php
  Update docs/guide/database.arr.txt
  New unit test for enhanced $gCProbability s/getters in CHttpSession #486. Fixed those methods to process corner cases properly. Initial $gCProbability is now double(1.0), was > 1.0 before.
  Bug #112: MSSQL: database abstraction layer now uses native transaction support of the SQLSRV driver.
  Forgot about spaces in comments creating procedure call. [ci skip]
  Better comments testing method name.
  Forgot about local MSSQL database settings.
  MSSQL unit testing SQL file reformatted and decorated. MSSQL testing class improved. Added unit tests for column comments retrieving.
  Removed old message.
  Update docs/guide/topics.i18n.txt
  Update docs/guide/topics.i18n.txt
  Requirements checker: russian (ru_RU) messages.
  Minor fixes and refinements to the MSSQL unit tests.
  better fix for issues #124
  ...

Conflicts:
	UPGRADE
2012-09-03 19:21:10 +02:00
resurtm
3b8a25e929 Oracle unit tests: "type" table added. 2012-09-03 22:31:06 +06:00
resurtm
3307ae05b9 Oracle unit tests DDL and DML revisited. 2012-09-03 22:11:31 +06:00
resurtm
43ffa493fb Added 'profiles' table to the Oracle unit tests. 2012-09-02 20:14:32 +06:00
resurtm
12181d2ac6 Oracle unit tests initial commit with simple working asserts, SQL and code. 2012-09-02 18:58:05 +06:00
resurtm
3ff8b4f404 Forgot about spaces in comments creating procedure call. [ci skip] 2012-08-29 23:09:05 +06:00
resurtm
289444a96d MSSQL unit testing SQL file reformatted and decorated. MSSQL testing class improved. Added unit tests for column comments retrieving. 2012-08-29 23:02:03 +06:00
resurtm
351ca14c28 Unit tests for CDbColumnSchema::$comment. 2012-08-03 20:56:28 +06:00
Carsten Brandt
805b3653e6 unit tests for criteria modification in beforeFind
some are currently failing due to issue #93
2012-08-01 21:38:43 +02:00
Alexander Kochetov
33cabc62c8 #1070 fix 2012-07-30 21:52:28 +04:00
Alexander Kochetov
fca49df5b6 Fix the beforeFind() behavior of the framework 2012-07-27 17:50:34 +04:00
DaSourcerer
34bce2647e Address issue #547: s/TYPE=INNODB/ENGINE=InnoDB/ 2012-03-23 15:02:38 +01:00
alexander.makarow
a5c831a72d fixed missing AUTOINCREMENT in sqlite.sql that is used in sequence tests 2011-11-21 01:11:08 +00:00
alexander.makarow
5bcb07f752 (Fixes issue 2647) Fixed inconvenient way of defining through relation.
(Fixes issue 2646)
(Fixes issue 2706) Added ability to join on a specific keys.
2011-10-13 17:41:55 +00:00
alexander.makarow
76a61a8c14 (Fixes issue 2637) Related table alias set dynamically in relational query is now available in the scopes of reated model 2011-07-12 21:05:22 +00:00