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
mdomba (mdwork)
c29be19d59
doc fix
...
[ci skip]
2012-08-10 12:49:14 +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
Paul Klimov
c76cd470b7
Visibility modifiers for internal fields in "CManyManyRelation" have been changed to "private", garbage return in "CManyManyRelation::initJunctionData()" has been removed.
2012-07-30 11:31:28 +03: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
Alexander Kochetov
fca49df5b6
Fix the beforeFind() behavior of the framework
2012-07-27 17:50:34 +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
ed9180404f
Code indenting at "CManyManyRelation" has been fixed: whitespaces have been replaced by tabs.
2012-06-26 15:17:56 +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
Paul Klimov
b3f31f3b06
Class "CManyManyRelation" has been updated allowing to determine junction data from foreign key internally.
2012-06-25 14:33:15 +03: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
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
3a12a9a585
Fixes #392 : There was no way to get and modify criteria in CActiveRecord::beforeFind
2012-05-09 15:05:21 +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
Alexander Makarov
f094f2c1a1
Fixes issue #206 : Added ability to pass CDbCriteria object as AR relation parameter
2012-03-10 15:42:35 +04:00
qiang.xue
2353e0adf9
(Fixes issue 3108)
2012-02-13 01:27:06 +00:00
mdomba
6e8dc8c741
(fixes issue 3061) CActiveRecord doc fix
2012-01-08 22:07:55 +00:00
mdomba
a7ef3d5d02
removed 1.0.x reference from documentation
2011-12-28 12:29:24 +00:00
alexander.makarow
01f284aaee
better phpdoc for behaviors
2011-12-05 18:18:47 +00:00
alexander.makarow
5a90468c93
More accessors docs, a script to re-generate docs automatically
2011-10-25 00:03:52 +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
320ac8b60e
2011-07-06 22:04:50 +00:00
alexander.makarow
1680724f1f
(Fixes issue 2029) Added scope support to Model::relations()
2011-07-06 21:49:58 +00:00
qiang.xue
9cebad3587
(Fixes issue 2574)
2011-06-24 20:38:49 +00:00
qiang.xue
64f0845f56
(Fixes issue 2565)
2011-06-24 12:17:42 +00:00
qiang.xue
b6910c7dde
(Fixes issue 2538)
2011-06-15 19:05:45 +00:00
alexander.makarow
0050917775
reverted 2498 fix
2011-06-15 14:21:12 +00:00
jefftulsa
9b2f05efcc
small public method comment addition to address Issue 1912: API documentation clarification
2011-06-15 13:53:37 +00:00
qiang.xue
97654e2b04
(Fixes issue 2524)
2011-06-14 17:18:59 +00:00
alexander.makarow
20d3489b32
(Fixes issue 2498) When no value is returned from before* event-methods, it now always behaves the same way as when true was returned
2011-06-13 16:02:22 +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
alexander.makarow
cf953b83d5
(Fixes issue 2331) Added 'through' option to CActiveRecord::relations API docs
2011-04-15 00:57:46 +00:00
mdomba
6b17ffff53
(Fixes issue 2326) typo fix
2011-04-13 09:21:40 +00:00
qiang.xue
7a397f1909
* Added CActiveRecord::saveCounters().
2011-04-08 22:09:56 +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
qiang.xue
c7e9a34b8d
(Fixes issue 2227)
2011-03-22 17:38:13 +00:00
qiang.xue
dc99b7cdeb
(Fixes issue 1868)
2011-03-14 00:28:38 +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