Commit Graph

167 Commits

Author SHA1 Message Date
Carsten Brandt
d2aab58d09 Merge PR #2705 branch '1849-additions' of https://github.com/resurtm/yii
* '1849-additions' of https://github.com/resurtm/yii:
  Additions to #1849.
  removed unnecessary spaces
  replaced spaces to tabs
  fix changelog
  fix changelog
  #1515  Use index support in relations
2014-01-28 12:06:38 +01:00
munawer-t
89b0bcad8a spacing fix 2014-01-07 17:45:45 +05:30
munawer-t
2ed6c2d181 Use tab spacing 2014-01-07 17:37:33 +05:30
munawer-t
ea84745b43 Apply changes as per comment 2014-01-07 17:07:09 +05:30
munawer-t
32bc867bf6 Doc typos and corrections 2014-01-07 15:23:17 +05:30
Paul Klimov
95078cda98 'CJoinQuery::createCommand()' fixed to exclude duplicating joins. 2013-10-21 12:29:05 +03:00
Borro
f94e868ad0 Bug #2874: Fixed duplicate columns selection for HAS_MANY relation with composite primary key 2013-09-17 13:52:46 +04: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
Klimov Paul
16616abf4e Double condition applying for Active Record relation lazy loading has been fixed. 2013-08-13 11:11:21 +03:00
resurtm
87deced5b0 Additions to #1849. 2013-07-31 10:21:49 +06:00
resurtm
cdc5f01b90 Merge branch 'pr/1849' 2013-07-31 09:32:29 +06:00
Luis Lobo Borobia
dfa057a499 Repeated message with different punctuation and case
The message in line 1520 is different from the ones in lines 542 and 1034, only differ in punctuation and case. Changed 1520 to match 542 and 1034. Message from 1520 should disappear in next "build message" command run.
2013-07-28 01:12:44 -03:00
Konovalov Maxim
584e6053fa removed unnecessary spaces 2013-07-08 01:22:15 +10:00
Alexander Kochetov
ab4d0ed83d BELONGS_TO through eager loading fix 2013-06-04 04:36:43 +04:00
Alexander Makarov
c7a7b55201 Adjusted phpdoc, fixed code style 2013-05-27 13:59:51 +04:00
Alexander Makarov
f284867b91 Merge branch '1863_enhance_CActive_hierarchy_extensibility' of github.com:denisarius/yii into denisarius-1863_enhance_CActive_hierarchy_extensibility
Conflicts:
	CHANGELOG
2013-05-27 13:46:51 +04: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
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
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
resurtm
49598e9f4c Merge pull request #2306 from resurtm/fixes-2122
Fixes #2122: CActiveRecord, lazy load: 'params' from relations used in 'through' option were not applied to the final SQL statement.
2013-04-25 20:18:57 -07:00
Paul Klimov
b2b9c3fcd2 "CJoinElement::applyLazyCondition()" and "CActiveRecordTest" have been updated to match PHP 5.2. 2013-04-16 10:51:40 +03:00
Paul Klimov
b796d00780 "CJoinElement::applyLazyCondition()" has been updated allowing to respect relation condition and params. 2013-04-15 17:09:54 +03:00
Paul Klimov
234a8bc199 "CActiveFinder::applyLazyCondition()" has been updated to use last relation in the join chain, while composing where condition. 2013-04-15 12:51:42 +03:00
Paul Klimov
156ce410c3 CStatElement ambiguous fields with join table with composite PK fixed. 2013-04-09 13:52:58 +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
Paul Klimov
1d5148adeb "CActiveFinder::buildJoinTree()" has been fixed to not use "select=false" 2013-04-04 16:19:30 +03:00
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
denisarius
154d903f7d Enhancing extensibility of CActive* class hierarchy: CActiveFinder and CActiveRecord::model factory methods
Author:    denisarius <denisarius@gmail.com>
2012-12-17 17:26:46 +04:00
Konovalov Maxim
d0d2710104 replaced spaces to tabs 2012-12-13 00:20:57 +10:00
Konovalov Maxim
85efd7bb0a #1515 Use index support in relations 2012-12-12 22:04:07 +10: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