18821 Commits

Author SHA1 Message Date
2da6773b68 Fixes #17089: Fixed caching of related records when via() using with callable 2019-02-13 23:22:07 +03:00
6aa6359bbc Fix Chinese db-active-record.md (#17122) [skip ci] 2019-02-11 13:46:15 +03:00
b867cb7fd3 Fix comment space (#17115) [skip ci] 2019-02-08 12:47:39 +03:00
905cfd9725 Fixes #17098: Fixed message/extract when using message params returned from method calls 2019-02-07 20:44:11 +03:00
c64152d014 Update start-installation.md (#17113) [skip ci] 2019-02-07 18:18:07 +03:00
fe3ae964cd Updates pt-BR translation (#17105) [skip ci] 2019-02-06 12:37:48 +03:00
c776cf6240 Update UrlManager.php (#17102)
change >>'POST <controller:[\w-]+>s' => '<controller>/create'<< to >>'POST <controller:[\w-]+>' => '<controller>/create'<<
In POST we don't have 's' so  '<controller>/create but not '<controller>s/create
2019-02-05 23:08:32 +03:00
b904f78f9e Updates translation pt-BR (#17101) [skip ci]
* Translates start prerequisites to pt-BR
* Fixes grammatical and didactic errors
* Updates new topics and fixes minor grammatical errors
* Updates translation and fixes grammatical and conceptual errors
2019-02-04 08:01:43 +03:00
6246185607 Upgrade to newer scrutinizer engine (#17100) 2019-02-04 00:37:59 +03:00
fd3eb699d4 Fixes #17094: Fixed response on 204 status. Now it is empty 2019-02-04 00:10:47 +03:00
247fc330f5 Disabled code lines check and methods count check for Codeclimate 2019-02-03 23:35:53 +03:00
7470eea2e9 Updates translation to fix several gramatical, didatical, conceptual and functional errors (#17097) [skip ci] 2019-02-03 10:04:46 +03:00
0602b06c8d Improves readability, updates topics and fixes broken links (#17096) [skip ci] 2019-02-02 19:31:58 +03:00
39d3b6519c prepare for next release 2019-01-31 00:54:44 +01:00
ed64d65886 release version 2.0.16 2.0.16 2019-01-31 00:54:16 +01:00
768d590eef added missing @since annotations 2019-01-31 00:45:25 +01:00
1128a6d609 added missing documentation 2019-01-31 00:20:44 +01:00
6fe809ea26 added test case for checking BC of #16772 and #14759 2019-01-30 23:59:09 +01:00
31d3850a13 Fix typos in docs (#17084) [skip ci] 2019-01-30 01:06:13 +03:00
6bd04093db Sync french translations (#17081) 2019-01-29 10:56:22 +03:00
0d39d1cd4d Updated framework package composer.json 2019-01-29 00:36:14 +03:00
e4eaccc14d Merge branch 'security' 2019-01-28 22:50:38 +02:00
353cc7ac92 PL messages update (#17078) [skip ci] 2019-01-28 14:00:03 +03:00
3d0ec35865 Updated Russian translation strings 2019-01-28 01:12:51 +03:00
cfeab6ee9b docs/guide-ja/security-cryptography.md typo fixed [ci skip] (#17074) 2019-01-27 13:29:26 +03:00
5544d31bb3 Fix #17049: Use var instead of let (#17055) 2019-01-21 15:21:47 +03:00
de5b903806 Fixed regression in #16817 (#17056) 2019-01-21 15:20:43 +03:00
09914bad87 docs/guide-ja updated [ci skip] (#17054) 2019-01-20 18:34:56 +03:00
adf8f9a32f Fixes #15931: yii\db\ActiveRecord::findOne() now accepts quoted table and column names using curly and square braces respectively 2019-01-20 17:20:43 +03:00
b9ee17014e Removed wrong test addded in dfcf037c7 2019-01-20 13:54:31 +02:00
025dd072c6 Replaces commit dfcf037c7. The prvious idea was wrong and broke some tests 2019-01-20 13:50:27 +02:00
dfcf037c76 ActiveQuery::viaTable() now throws exception on wrongly prepared query
Closes #15876
2019-01-20 12:33:26 +02:00
3c091b802a When uses filter \yii\filters\PageCache, then yii\web\JsonResponseFor… (#17044)
* When uses filter \yii\filters\PageCache, then yii\web\JsonResponseFormatter sets Response::$content as null, howerer \yii\filter\PageCache has been restore content
2019-01-18 06:06:08 -05:00
7bf0562223 Various fixed for Arabic guide [skip ci] 2019-01-15 07:54:58 -05:00
659b3d4b77 Fixing DB session override problems
See #16959
2019-01-15 12:42:13 +02:00
4333b90186 Fixes #15482: AR::find()->with() missing data when using string identifiers for relations 2019-01-14 18:50:56 -05:00
63faf5f593 Fixes #16703: Updated upgrade notes mentioning important change made in 2.0.14 2019-01-15 02:37:35 +03:00
3a52578d4a Various docs fixes [skip ci] 2019-01-14 18:21:59 -05:00
7ccadb4a79 Fixes #15167: Fixed loading of default value current_timestamp() for MariaDB >= 10.2.3 2019-01-11 17:47:40 -05:00
c59df914c1 Fixes #16253: Fixed empty checkboxlist validation 2019-01-10 09:17:37 -05:00
22d30f1999 Fixes #15286: Fixed incorrect formatting of time with timezone information 2019-01-09 09:59:56 -05:00
e3b7581bca Fixes #15145: Fixed Validator::skipOnEmpty documentation [skip ci] 2019-01-09 06:51:31 -05:00
f44266c946 Updated db-query-builder.md adding example for 'in' with composite columns (#17026) [skip ci] 2019-01-08 15:30:12 -05:00
e5ecea653f Fixed random fails of RetryAcquireTraitTest (#17024)
Property `RetryAcquireTrait::$retryDelay` sets the minimum delay, but not the exact delay. In fact, the delay may be longer. Because of this, sometimes less than 20 blocking attempts occur. Checking the exact number of locks sometimes leads to the following errors:
```
$ vendor/bin/phpunit --filter=testRetryAcquire
PHPUnit 4.8.34 by Sebastian Bergmann and contributors.

F

You should really fix these slow tests (>500ms)...
 1. 1050ms to run yiiunit\framework\mutex\RetryAcquireTraitTest:testRetryAcquire

Time: 4.08 seconds, Memory: 44.00MB

There was 1 failure:

1) yiiunit\framework\mutex\RetryAcquireTraitTest::testRetryAcquire
Failed asserting that 19 is identical to 20.

/yii2/tests/framework/mutex/RetryAcquireTraitTest.php:36
/yii2/vendor/phpunit/phpunit/phpunit:52

FAILURES!
Tests: 1, Assertions: 3, Failures: 1.
```

I reworked the test so that it checks the duration of the delays, but not the exact number of blocking attempts.
2019-01-08 09:55:27 -05:00
108155ad1d Fixed nightly build (#17025) 2019-01-08 09:52:15 -05:00
ec1809bed2 Fix to do not delete used message files with nested category names (#17021) 2019-01-06 16:20:25 -05:00
b4cb42fb9d Fix of Oracle tests for proper skipping (#17019)
PHPUnit must get the data that will be passed to the tests, before executing them. That's why you can't prevent the dataProvider to be executed using `$this->markTestSkipped()` inside a test. Instead, you must use a skipping inside data provider when the test cannot be executed.

Now Oracle tests are skipped without fails when Oracle isn't installed:
```
$ vendor/bin/phpunit --filter=BuildLikeCondition --group=oci --verbose

...

There was 1 skipped test:

1) yiiunit\framework\db\oci\QueryBuilderTest::testBuildLikeCondition
Test for yiiunit\framework\db\oci\QueryBuilderTest::testBuildLikeCondition skipped by data provider
Could not execute Connection::quoteValue() method: Connection::dsn cannot be empty.
```
2019-01-05 16:52:01 -05:00
92c66758de Added tests for DateValidator when no time is specified for 'format' (#17018)
Related issues:
* #10737
* #14299
* #14795
2019-01-04 18:45:49 -05:00
36ed136caf Issue #14388: test of dependent ActiveFixtures loading (#17012) 2019-01-04 09:24:38 -05:00
4584487126 Fixes DateValidatorTest for ICU 55.1 (#17013)
I have installed ICU of version `55.1` and tests fail on it. That's because 'short' datetime format has been changed earlier - starting with version 55.1

See for example Symfony changes for ICU 55: 4f224ef4ab (diff-564fc4b01393077657880495f2be7b17R54)
2019-01-04 05:38:10 -05:00