You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: framework/CHANGELOG.md
+26-26
Original file line number
Diff line number
Diff line change
@@ -1,52 +1,48 @@
1
1
Yii Framework 2 Change Log
2
2
==========================
3
3
4
-
2.0.8 under development
5
-
-----------------------
4
+
2.0.8 April 28, 2016
5
+
--------------------
6
6
7
+
- Bug #7627: Fixed `yii\widgets\ActiveField` to handle inputs AJAX validation with changed ID properly (dizeee)
7
8
- Bug #7717: Fixed the bug that `$properties` parameter in `ArrayHelper::toArray()` was not passed to recursive calls (quantum13)
8
-
- Bug #11088: Fixed bug with column name not being quoted correctly, when a quoted table name or a table name in prefix syntax was used (cebe, edgardmessias, Ni-san)
9
9
- Bug #9074: Fixed JS call `$('#grid').yiiGridView('getSelectedRows')` when `GridView::$showHeader` is set to false (NekitoSP, silverfire)
10
-
- Bug #9935: Fixed `yii\validators\EachValidator` does not invoke `validateAttribute()` method of the embedded validator (klimov-paul)
11
-
- Bug #11270: Fixed `BaseActiveRecord::link()` method in order to support closure in `indexBy` for relations declaration (iushev)
- Bug #9935: Fixed `yii\validators\EachValidator` does not invoke `validateAttribute()` method of the embedded validator (klimov-paul)
17
12
- Bug #10201: Fixed bug in ActiveRecord, where relational data could not be fetched in case with composite key and join with IN condition (PaulVanSchayck, airmoi, joe-meyer, cebe)
18
13
- Bug #10235: Fixed `yii\console\Application::runAction` to not to corrupt response object (hiqsol)
19
14
- Bug #10480: Fixed removing old identity cookie when loggin in as another user without logging out first (maine-mike)
20
15
- Bug #10617: Fixed `yii\web\Request::getBodyParams()` returned `null` instead of empty array if request body is empty and content type is application/json (samdark)
21
16
- Bug #10784: Fixed `yii\grid\CheckboxColumn` to set correct value when `yii\grid\CheckboxColumn::$checkboxOptions` closure is used (nukkumatti)
22
17
- Bug #10850: Fixed unable to use 'definitions' and 'aliases' at `yii\widgets\MaskedInput` (rahimov, klimov-paul)
23
18
- Bug #10884: Fixed MessageFormatter for formatting messages when not all parameters are given (laxity7, cebe)
24
-
- Enh #10910: Fixed Captcha client side validation after image refresh, when controller is under module (silverfire)
25
19
- Bug #10935: Fixed cache key collision in `yii\web\UrlManager::createUrl()` (sammousa)
26
20
- Bug #10946: Fixed parameters binding to the SQL query in `yii\db\mysqlSchema::findConstraints()` (silverfire)
27
21
- Bug #10969: Fixed generator migration tool with decimal params in column (pana1990)
28
22
- Bug #10974: `yii.js` - fixed error in ajaxPrefilter event handler, caused by blocked frame (maximal)
23
+
- Bug #11012: Fixed `yii\web\UploadedFile::getBaseName()` to work with UTF-8 file names (hiscaler, silverfire)
24
+
- Bug #11026: Fixed `StringHelper::truncateWords()` to count words properly for non-English text (samdark, tol17)
29
25
- Bug #11038: Fixed handling of intervals of 0 seconds in `yii\i18n\Formatter::asDuration()` (VirtualRJ)
26
+
- Bug #11040: Check parameter 'recursive' and disable recursive copying with option 'recursive' => false in method BaseFileHelper::copyDirectory (Ni-san)
- Bug #11066: `yii.js` - fixed `getQueryParams()` function to handle URLs with anchors correctly (DrDeath72)
29
+
- Bug #11088: Fixed bug with column name not being quoted correctly, when a quoted table name or a table name in prefix syntax was used (cebe, edgardmessias, Ni-san)
32
30
- Bug #11093: Fixed `yii\db\QueryBuilder::buildAndCondition()` to add query params passed directly by `yii\db\Expression` (CedricYii, silverfire)
33
-
- Bug #11012: Fixed `yii\web\UploadedFile::getBaseName()` to work with UTF-8 file names (hiscaler, silverfire)
34
-
- Bug #11026: Fixed `StringHelper::truncateWords()` to count words properly for non-English text (samdark, tol17)
35
-
- Bug #11040: Check parameter 'recursive' and disable recursive copying with option 'recursive' => false in method BaseFileHelper::copyDirectory (Ni-san)
36
31
- Bug #11125: Fixed `JSON_ERROR_SYNTAX` for `json_decode(null)` in PHP 7 (fps01)
37
32
- Bug #11132: Fixed `yii\widgets\FragmentCache` not handling empty content correctly in all cases (kidol)
38
33
- Bug #11188: Fixed wrong index usage in `CaptchaAction` when calling `imagefilledrectangle` (alsopub)
- Bug #11425: Fixed namespace conflict with Markdown helper and Console helper (cebe, mdmunir)
45
44
- Bug: SQlite querybuilder did not create primary key with bigint for `TYPE_BIGPK` (cebe)
46
45
- Enh #5469: Add mimetype validation by mask in FileValidator (kirsenn, samdark, silverfire)
47
-
- Enh #11336: Allow resettting `$hostInfo`, `$scriptUrl`, and `$pathInfo` in `yii\web\Request` and `$baseUrl`, and `$hostInfo` in `yii\web\UrlManager` to `null`, to make Yii determine the value again (cebe)
48
-
- Enh #10322: `yii.activeForm.js` now respects the `formtarget` attribute of submit button (anatolyrugalev)
49
-
- Enh #9425: `yii\db\Query::exists()` now uses SQL standard `EXISTS()` query via new `yii\db\QueryBuilder::selectExists()` method to improving performance in some cases (PowerGamer1)
50
46
- Enh #7177, #10165: Added support for validating datetime and time values using intl short format to `DateValidator` (VirtualRJ, cebe)
51
47
- Enh #8145, #8139, #10234#11153: `yii\validators\Validator::$attributes` property now supports `!attribute` notation to validate attribute, but do not mark it as safe (mdmunir)
52
48
- Enh #8148: Implemented ability to add comment on table and column in migration (vaseninm, silverfire)
@@ -55,9 +51,12 @@ Yii Framework 2 Change Log
55
51
- Enh #8639: Improve ActiveRecord to not create new instances of classes when objects are available (cebe)
56
52
- Enh #8779: Automatically set enctype form option when using file input field (pana1990, arogachev)
- Enh #9425: `yii\db\Query::exists()` now uses SQL standard `EXISTS()` query via new `yii\db\QueryBuilder::selectExists()` method to improving performance in some cases (PowerGamer1)
58
55
- Enh #9562: Adds `char` datatype to framework (df2)
59
56
- Enh #9604: `yii\db\BaseActiveRecord` now triggers event `EVENT_AFTER_REFRESH` after a record is refreshed (raoul2000)
60
57
- Enh #9893: `yii.js` handleAction enhanced to support for data-form attribute, so links can trigger specific forms (SamMousa)
- Enh #10908: Added Dependency Injection for Closure configuration (SamMousa)
71
+
- Enh #10910: Fixed Captcha client side validation after image refresh, when controller is under module (silverfire)
72
72
- Enh #10921: `__toString()` of column schema builder now adapts to column types (df2)
73
73
- Enh #10931: Removed hard dependency of `yii\di\Container` on `Yii::$app` (SamMousa)
74
74
- Enh #10937: `yii\web\User` will now confirm the request accepts an HTML response before redirecting to the login page. Added optional `$checkAcceptHeader` to `yii\web\User::loginRequired()` (sammousa)
75
75
- Enh #10941: Added `yii\helpers\ArrayHelper::isTraversable`, added support for traversable selections for dropdownList, radioList and checkboxList in `yii\helpers\Html` (sammousa)
76
+
- Enh #10941: Added `yii\helpers\ArrayHelper::isTraversable`, added support for traversable selections for dropdownList, radioList and checkboxList in `yii\helpers\Html`.
77
+
- Enh #10954: `yii\db\QueryBuilder` now accepts `\Traversable` objects for `in` condition (SamMousa, silverfire)
76
78
- Enh #10967: Simplified Javascript on the exception debug page (SamMousa)
79
+
- Enh #10976: `Inflector::transliterate()` now uses `strtr` instead of `str_replace` (DrDeath72)
80
+
- Enh #11002: `AttributeBehavior::$skipUpdateOnClean` which determines whether to skip a behavior when the behavior owner has not been modified (Faryshta)
77
81
- Enh #11056: Allow setting a custom logger configuration for `yii\log\Dispatcher` in configuration (bionoren, cebe)
78
82
- Enh #11058: `yii\web\User::loginRequired()` now does not set return URL when request method is not GET (dawei101, silverfire)
83
+
- Enh #11110: Added migrations for DB session (mdmunir)
79
84
- Enh #11137: Added weak ETag support to `yii\filters\HttpCache`. It could be turned on via setting `$weakEtag` to `true` (particleflux)
80
85
- Enh #11139: `yii\validators\EachValidator` injects specific attribute value in error message parameters (silverfire)
86
+
- Enh #11166: migrate command new option `useTablePrefix` (Faryshta)
81
87
- Enh #11187: migrate command now generates phpdoc for table migrations (Faryshta)
88
+
- Enh #11207: migrate command can create foreign keys. (Faryshta)
82
89
- Enh #11254: Added ability to attach RBAC rule using class name (mdmunir)
- Avoid reading more bytes than needed from `/dev/urandom` and `/dev/random`.
85
92
- Pefer `/dev/random` to `/dev/urandom` when running on FreeBSD.
86
93
- Better RNG performance.
94
+
- Enh #11336: Allow resettting `$hostInfo`, `$scriptUrl`, and `$pathInfo` in `yii\web\Request` and `$baseUrl`, and `$hostInfo` in `yii\web\UrlManager` to `null`, to make Yii determine the value again (cebe)
87
95
- Enh: Added `StringHelper::countWords()` that given a string returns number of words in it (samdark)
88
-
- Enh #11207: migrate command can create foreign keys. (Faryshta)
89
-
- Enh #11166: migrate command new option `useTablePrefix` (Faryshta)
90
-
- Enh #11002: `AttributeBehavior::$skipUpdateOnClean` which determines whether to skip a behavior when the behavior owner has not been modified (Faryshta)
91
-
- Chg #11283: `ActiveRecord::unlink()` is not setting FK to `null` before deleting itself anymore (samdark)
92
-
- Eng #10976: `Inflector::transliterate()` now uses `strtr` instead of `str_replace` (DrDeath72)
93
-
- Enh #11110: Added migrations for DB session (mdmunir)
94
-
- Enh #10941: Added `yii\helpers\ArrayHelper::isTraversable`, added support for traversable selections for dropdownList, radioList and checkboxList in `yii\helpers\Html`.
95
-
- Enh #10954: `yii\db\QueryBuilder` now accepts `\Traversable` objects for `in` condition (SamMousa, silverfire)
96
-
- Chg: HTMLPurifier dependency updated to `~4.6` (samdark)
97
96
- Chg #9854: Added `ActiveRecordInterface::populateRelation()` to respect the methods called by the implementation (SamMousa)
- Chg #10921: Inverts responsibility of database specific column schema builder classes (df2)
100
99
- Chg #11071: `yii\helpers\BaseArrayHelper::isIn()` and `isTraversable()` since now throw `\yii\base\InvalidParamException` instead of `\InvalidArgumentException` (nukkumatti)
100
+
- Chg #11283: `ActiveRecord::unlink()` is not setting FK to `null` before deleting itself anymore (samdark)
101
+
- Chg: HTMLPurifier dependency updated to `~4.6` (samdark)
101
102
- New #8920: Added `yii\mutex\PgsqlMutex` which implements mutex "lock" mechanism via PgSQL locks (nineinchnick, CSharpRU)
Copy file name to clipboardExpand all lines: framework/behaviors/TimestampBehavior.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@
29
29
* By default, TimestampBehavior will fill the `created_at` and `updated_at` attributes with the current timestamp
30
30
* when the associated AR object is being inserted; it will fill the `updated_at` attribute
31
31
* with the timestamp when the AR object is being updated. The timestamp value is obtained by `time()`.
32
-
*
32
+
*
33
33
* For the above implementation to work with MySQL database, please declare the columns(`created_at`, `updated_at`) as int(11) for being UNIX timestamp.
34
34
*
35
35
* If your attribute names are different or you want to use a different way of calculating the timestamp,
0 commit comments