Commit Graph

258 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
Alexander Makarov
356c00247e Fixes #2048: AR now uses alias from CActiveRecord::getTableAlias instead of always using default "t" 2013-03-06 02:21:24 +04:00
Alexander Makarov
f0613e5fce Merge branch 'patch-1' of git://github.com/s-larionov/yii into s-larionov-patch-1 2013-03-06 02:11:07 +04: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
Sergey Larionov
390b0e797c Удалил дополнительную проверку в ar->update, которая приводила к ошибкам 2013-02-05 14:34:18 +11:00
Sergey
729a333d84 Fix table alias in ar->exists method 2013-02-05 03:25:30 +11:00
Sergey
826be39504 Update framework/db/ar/CActiveRecord.php
method save() always returns true, even if the record does not exist in the database
2013-02-01 02:43:18 +11:00
Evgeny Blinov
bbd21413c9 CStatElement with join bugfix 2013-01-28 17:07:01 +04:00
Sergey
8afb3b5855 Update framework/db/ar/CActiveRecord.php
Если в ActiveRecord переопределить метод getTableAlias, то будут возникать ошибки неизвестной таблицы t, а так он будет использовать текущий алиас у таблицы
2013-01-28 16:01:08 +11:00
resurtm
40dca168e1 PHPDoc: cache dependency related methods' arguments type changed from CCacheDependency to CCacheDependency|ICacheDependency 2013-01-18 14:38:07 +06: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
slavcopost
3c737f7d25 Update ActiveRecord phpDoc 2013-01-14 21:34:58 +02: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
Carsten Brandt
7cc307d22f Merge branch 'master' of https://github.com/yiisoft/yii
* 'master' of https://github.com/yiisoft/yii: (27 commits)
  CHtml::cssFile() url fix
  Replaced CModel with actual model name
  Rollback CHANGELOG
  A little refactoring
  CHANGELOG
  CHtml::cssFile() fix
  Completed phpdoc comments for the controller template
  Document the 'submit' options in CHtml::clientChange() even better.
  Document the 'submit' and 'csrf' options in CHtml::clientChange() even better.
  Performance optimization
  CHANGELOG fix
  Coding style fix
  Coding style fix
  CHANGELOG fix
  Fixed can sorting cutted array with CArrayDataProvider
  Code style fix
  Document the 'submit' option in CHtml::clientChange() better.
  form.css success label fix
  doc fix
  else if => elseif
  ...
2012-10-07 22:19:39 +02:00
Carsten Brandt
cca7ecafc1 fixed CActiveRecord @throws doc 2012-10-07 22:19:11 +02: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 Kochetov
399f77cd1e Comments 2012-09-20 18:42:08 +04:00
Alexander Kochetov
4457ce3751 Protected approach solution 2012-09-20 05:38:48 +04:00
Alexander Kochetov
7e18d5549a Last chance for good solution 2012-09-20 04:29:06 +04:00
Alexander Kochetov
df92d6b005 Last chance for good solution 2012-09-20 04:03:44 +04:00
Alexander Kochetov
870f25cab1 Fastest variant 2012-09-20 00:12:23 +04:00
Alexander Kochetov
67ca957dcb Ideal solution 2012-09-19 22:59:45 +04:00
Alexander Kochetov
d020f355d7 Refactoring 2012-09-19 21:54:40 +04:00
Alexander Kochetov
481e275989 Significant reduction in memory consumption (another approach) 2012-09-19 01:19:10 +04:00
Alexander Kochetov
4c93037ee4 Significant reduction in memory consumption 2012-09-19 00:17:41 +04:00
Alexander Makarov
d865a3bab8 Fixes #1057 Removed SVN ids 2012-09-09 22:23:45 +04:00
Carsten Brandt
f6a351cf5b adjusted CActiveRecord documentation
onBeforeFind and beforeFind descriptions where outdated.
2012-09-07 22:01:21 +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
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