Commit Graph

35 Commits

Author SHA1 Message Date
Paul Klimov
783a2ea6f6 "CActiveRecordTest::testCountWithHavingRelational()" has been updated exposing issue #2201 2013-03-21 13:17:53 +02:00
Paul Klimov
71388e1b69 Test method "CActiveRecordTest::testFindBySinglePkBySingleSizeArrayWithMixedKeys()" converted to "CActiveRecordTest::testFindBySinglePkByArrayWithMixedKeys()", checking both single and multy size pk arrays. 2013-03-20 13:20:05 +02:00
Paul Klimov
d8037f7b6d Test method "CActiveRecordTest::testFindBySinglePkBySingleSizeArrayWithMixedKeys()" has been added to expose issue #2216. 2013-03-20 13:09:10 +02:00
Paul Klimov
4a17cf0e4a "CActiveFinder::count()" has been updated allowing correct records count with having. 2013-03-04 15:45:59 +02:00
Paul Klimov
a2fead97a7 Test for count with having have been added to "CActiveRecordTest" test case. 2013-03-04 14:35:06 +02:00
Carsten Brandt
70374843e7 added test for #1381 and changelog line 2012-11-14 14:03:01 +01: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
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
Carsten Brandt
f63fa89a3d added unit tests for beforeFind() and afterFind() on empty result
when a query does not return results beforeFind() is called for all
eager relations even when main query did not return a result.
This is a behavior change, things are all consistent now.
afterFind() should of course never get called then.
2012-09-03 18:24:30 +02:00
DaSourcerer
642de21873 Replaced assertEquals(null, ...) with assertNull(...) 2012-08-13 18:52:34 +02:00
DaSourcerer
2798c74c69 Replaced assertEquals(true, ...) with assertTrue(...) 2012-08-13 18:42:40 +02: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
resurtm
463a145d6f Fixed PgSQL tests failing. 2012-07-06 10:44:01 +06:00
Carsten Brandt
c985553d23 removed todo annotation 2012-05-29 21:40:56 +02:00
Carsten Brandt
b3e2dc78b1 fixed #749: CActiveRecord::refresh() in afterSave
CActiveRecord::refresh() did not work in afterSave() for new records.
refresh() will now always populate model with new data, when db entry exists
2012-05-29 21:36:41 +02:00
Alexander Makarov
f094f2c1a1 Fixes issue #206: Added ability to pass CDbCriteria object as AR relation parameter 2012-03-10 15:42:35 +04:00
alexander.makarow
2ee191932a (Fixes issue 2949) 2011-11-21 00:44:19 +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
alexander.makarow
1680724f1f (Fixes issue 2029) Added scope support to Model::relations() 2011-07-06 21:49:58 +00:00
alexander.makarow
f7505c00f9 (Fixes issue 2319) Added support to call behavior scope through criteria 'with'=>array('scopes'=>'behaviorScope') 2011-04-17 10:38:14 +00:00
qiang.xue
7a397f1909 * Added CActiveRecord::saveCounters(). 2011-04-08 22:09:56 +00:00
alexander.makarow
b1599035de (Fixes issue 2274) merging of "with" fails if there is joinType 2011-03-31 21:22:23 +00:00
alexander.makarow
b32b8753b3 2011-03-05 15:45:50 +00:00
alexander.makarow
2698e0fe11 Additional tests for AR through 2011-03-05 08:06:08 +00:00
alexander.makarow
78bf76d3ae (Fixes issue 1117) Added support for "through" in Active Record relations allowing to handle association table data 2011-02-28 17:19:09 +00:00
alexander.makarow
286d95aac3 Added ability to perform Relational JOIN without getting related models 2011-02-25 22:54:03 +00:00
alexander.makarow
7f04955dd0 additional tests for issue 1755 2011-02-21 00:29:52 +00:00
alexander.makarow
486acc4f5c (Fixes issue 558) Added parametrized named scopes, added scopes to criteria, implemented scope criteria merging 2011-02-19 00:11:00 +00:00
alexander.makarow
0f82a6fb52 2011-02-18 21:31:21 +00:00
alexander.makarow
04b6dd9331 (Fixes issue 1221) fixed CActiveRecordHasManyThroughTest 2011-02-18 21:16:18 +00:00
alexander.makarow
1f757cbf53 improved unit tests 2011-02-18 15:25:38 +00:00