Commit Graph

119 Commits

Author SHA1 Message Date
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
Qiang Xue
22265fc13d Merge pull request #741 from jamesmoey/fix-591
Fix for issue #591 CActiveRecord::getRelated doesn't call afterFind() wi...
2012-08-06 13:35:38 -07:00
Carsten Brandt
8aaeaf8051 fixed relational beforeFind criteria modification
issue #93

this fix might break BC since possible criteria modifications that did
not apply in the past will apply now.
This fix is supposed to show up how a solution would look like, we need
to think about a solution that does not break existing applications.
2012-08-02 10:48:43 +02:00
Paul Klimov
e22af736c1 Merge branch 'master' of git://github.com/yiisoft/yii into 636-many-to-many-relation-resolve-junction-data 2012-08-01 13:17:45 +03:00
Alexander Kochetov
33cabc62c8 #1070 fix 2012-07-30 21:52:28 +04:00
Alexander Kochetov
75c4722f2b CActiveFinder refactoring
As author of the original parametrized scopes, I propose to make some
refactoring in CActiveFinder class. Unit tests passed.
2012-07-27 21:51:31 +04:00
Alexander Kochetov
820df8fce4 Revert "CActiveFinder refactoring"
This reverts commit 9c6cc60b50.
2012-07-27 19:09:41 +04:00
Alexander Kochetov
9c6cc60b50 CActiveFinder refactoring 2012-07-27 19:05:37 +04:00
Paul Klimov
d4d28f36fe Join table exception message composition has been fixed: missing join table name has been returned. 2012-07-10 13:12:13 +03:00
Paul Klimov
ca200147d3 Class "CActiveFinder" has been updated to use "CManyManyRelation" internal methods while performing relational queries. 2012-06-25 14:35:16 +03:00
James Moey
8d591c95d1 Fix for issue #591 CActiveRecord::getRelated doesn't call afterFind() with through relation
It was only expecting joinTree only contain 1 child, if you use through relation, that might not be true. Therefore, use a loop to go though the children and call afterFind on them.
2012-05-23 13:29:18 +10:00
Alexander Makarov
f1ec2e7db9 API documentation fix 2012-05-10 17:01:42 +04:00
Alexander Makarov
bd147db6e9 fixed formatting, better changelog description 2012-05-01 23:16:35 +04:00
marcovtwout
781691e5c8 FIX: Issue #553 - restore criteria on related model after find when using 'with' and 'scopes'. 2012-03-27 11:43:21 +02:00
qiang.xue
2353e0adf9 (Fixes issue 3108) 2012-02-13 01:27:06 +00:00
mdomba
a7ef3d5d02 removed 1.0.x reference from documentation 2011-12-28 12:29:24 +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
alexander.makarow
1680724f1f (Fixes issue 2029) Added scope support to Model::relations() 2011-07-06 21:49:58 +00:00
qiang.xue
b6910c7dde (Fixes issue 2538) 2011-06-15 19:05:45 +00:00
jefftulsa
9b2f05efcc small public method comment addition to address Issue 1912: API documentation clarification 2011-06-15 13:53:37 +00:00
alexander.makarow
e7b6883ebb PhpDoc corrections 2011-05-05 21:36:32 +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
b43bdc8f26 (Fixes issue 2294) 2011-04-08 21:09:36 +00:00
alexander.makarow
5d55edb06e 2011-03-22 19:59:34 +00:00
alexander.makarow
487cc6f600 Reverted relational AR optimizations causing side effects 2011-03-13 19:17:54 +00:00
qiang.xue
064eb0078f (Fixes issue 1993) 2011-03-13 13:09:46 +00:00
alexander.makarow
3ffed1c62a (Fixes issue 2188) 'join' in default scopes is now respected by STAT relations 2011-03-09 18:56:01 +00:00
alexander.makarow
1c1fd44527 - All lazy/eager loading types are now supported for through.
- Some performance optimizations and refactorings.
- Less queries when getting a model with more than two HAS_MANY and using limit.
2011-03-04 13:15:17 +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
9908f3e071 Fixed joinType regression in relational AR 2011-02-26 18:15:19 +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
271160c065 2011-02-23 13:03:07 +00:00
alexander.makarow
00b28076b6 rolled back r2994 2011-02-23 11:56:11 +00:00
alexander.makarow
44b310c295 The 'condition' declared in the scopes of the related AR classes will now be put in the 'WHERE' clause when performing relational AR queries 2011-02-23 02:35:14 +00:00
alexander.makarow
8ffea45016 CActiveFinder: less memory consumption, less code 2011-02-22 23:43:15 +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
qiang.xue
4be0af6917 changed copyright year. 2011-01-01 19:31:13 +00:00
qiang.xue
16e6a2ada6 (Fixes issue 1914) 2010-12-28 16:18:06 +00:00
alexander.makarow
fe4a9fabb3 (Fixes issue 1898) Fixed CActiveRecord count method docuementation 2010-12-16 22:23:25 +00:00
qiang.xue
1ce05a4c65 index fix. 2010-11-10 20:36:46 +00:00
qiang.xue
86a1402206 (Fixes issue 1420) 2010-11-04 16:24:45 +00:00
mdomba
72b974560b Updated PHPDoc @param parameter names 2010-09-23 13:28:52 +00:00
mdomba
ef2ca77957 added PHPDoc param where needed 2010-09-23 12:34:33 +00:00
qiang.xue
a7bcb8e1ca 2010-09-11 23:44:14 +00:00
qiang.xue
258f70fbce 2010-09-11 23:34:58 +00:00
qiang.xue
20f34921ef fixed potential circular references in RAR. 2010-09-11 23:29:04 +00:00
qiang.xue
28a251bd44 Fixed event raising bug. 2010-08-31 12:40:04 +00:00
qiang.xue
1f1d64c0b5 Fixed some issues caused by recent check-ins. 2010-08-30 20:59:43 +00:00