Commit Graph

138 Commits

Author SHA1 Message Date
ivokund
16e7bac6af Update CActiveFinder.php
Adds the missing "params" array from the query object.
2013-03-20 17:00:48 +02:00
Alexander Makarov
fa787ce919 Merge pull request #2170 from yiiframework-com-ua/uk_docs
Fixing typos, PHPDocs
2013-03-06 16:05:59 -08:00
borales
6d19a150d4 Replacing spaces with tabs, removing dots
[ci skip]
2013-03-06 20:59:38 +02:00
borales
2f68a75235 Replacing spaces with tabs
[ci skip]
2013-03-06 08:48:59 +02:00
borales
07975cad64 Fixing spaces
[ci skip]
2013-03-06 01:06:46 +02:00
borales
a7af2c5371 Fixing some typos, PHPDocs
[ci skip]
2013-03-06 00:24:35 +02:00
Paul Klimov
4a17cf0e4a "CActiveFinder::count()" has been updated allowing correct records count with having. 2013-03-04 15:45:59 +02:00
Carsten Brandt
def20b88e9 Update framework/db/ar/CActiveFinder.php
typo
2013-02-14 18:27:39 +01:00
Evgeny Blinov
bbd21413c9 CStatElement with join bugfix 2013-01-28 17:07:01 +04:00
Abdul Malik Ikhsan
6247adaf26 change copyright symbol 2013-01-15 18:38:02 +07:00
Abdul Malik Ikhsan
46c8ef0d9a update copyright year
from 2011 to 2013
2013-01-15 17:28:17 +07:00
Carsten Brandt
174a0694ff Merge branch 'master' of https://github.com/yiisoft/yii into 1381-stat-relation-select
* 'master' of https://github.com/yiisoft/yii: (144 commits)
  Fixes #1567 Added filterSelector to CGridView
  Renamed the CONTRIBUTING file to CONTRIBUTING.md so that GitHub effectively uses the Markdown syntax already present in the file when presenting it.
  Fixes #1694 - doc fix
  Added issue number
  fixed whitespace issues introduced with #851
  Updated CHANGELOG
  Fixes #1584 same fix for CListView as already done for CGridView
  Fixes #1344 same fix for CListView as already done in CGridView
  Fixes #1104 same fix for CListView as already done for CGridView
  Fixes #1676 - proper grouping when no group field is specified
  Added addPrimaryKey and dropPrimaryKey commands to CDbMigration class in response to enh req #848
  [messages/ja] yii.php updated
  csfix - thx @resurtm
  typo in changelog
  Reverted PR #1467 (Issue #1465, fixes related issue #1661)
  Reverted PR #1662
  Better naming
  small update to documentation of filterAjaxOnly()
  Coding style fix
  Fixing bug #1661
  ...

Conflicts:
	CHANGELOG
2012-11-14 14:06:05 +01:00
resurtm
e3c34e128b Improved readability. 2012-11-04 22:21:17 +06:00
resurtm
775ed9a427 Comment. 2012-11-04 20:51:39 +06:00
resurtm
12da86f0df Removed unneeded LOCs. 2012-11-04 20:47:41 +06:00
Alexander Kochetov
486723805e else if => elseif 2012-10-03 10:20:14 +04:00
Carsten Brandt
8aa581a8e7 fix #1381, ignore criteria and scope select on stat relation
select is different in stat relation context and can not be an array as
it specifies the statistical value to select.

So we have to ignore select that might have been defined by
defaultScope, scope or beforeFind criteria modification.
2012-10-01 13:16:39 +02:00
Alexander Makarov
d865a3bab8 Fixes #1057 Removed SVN ids 2012-09-09 22:23:45 +04: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
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