Commit Graph

8965 Commits

Author SHA1 Message Date
Thiago Talma
1d062100b6 Fixes #13787: Added yii\db\Migration::$maxSqlOutputLength that allows limiting number of characters for outputting SQL 2017-06-09 23:36:19 +03:00
Arthur Khachaturov
78ec17f13c Fixes #14201: yii\console\controllers\MessageController::extractMessagesFromTokens() is now protected 2017-06-09 17:44:00 +03:00
Nikolay Oleynikov
fdc91f351b Improved base migration controller documentation [skip ci] (#14253) 2017-06-09 11:36:03 +03:00
Bizley
deea1829db Fixes #14264: Fixed a bug where yii\log\Logger::calculateTimings() was not accepting messages with array tokens 2017-06-08 12:57:43 +03:00
Carsten Brandt
fddb34b91c added param binding examples for update() and delete()
fixes #14218
2017-06-07 23:19:47 +02:00
PowerGamer1
3dc8f426d0 Fix MessageController color output on non-color termnials
fixes #14248
close #14249
2017-06-06 20:45:26 +02:00
Carsten Brandt
b056dff031 improved formatter documentation 2017-06-06 11:43:51 +02:00
Dmitry Naumenko
cf9787ddef Merge pull request #14256 from brandonkelly/patch-7
Fixed Formatter::normalizeDatetimeValue() docs
2017-06-06 08:54:21 +03:00
Brandon Kelly
981346cb1e Fixed Formatter::normalizeDatetimeValue() docs
There was a reference to `$checkTimeInfo` that was leftover from 54278fc842
2017-06-05 14:07:03 -07:00
Vasileios Lourdas
38bf88df1a Greek translation update. 2017-06-05 23:06:15 +03:00
Carsten Brandt
d6bd627ac3 prepare for next release 2017-06-05 16:34:55 +02:00
Carsten Brandt
be658f82bf release version 2.0.12 2017-06-05 16:33:41 +02:00
Carsten Brandt
c09a03ab8e fixed version and missing @since annotation 2017-06-05 16:26:51 +02:00
Carsten Brandt
717c545d2c moved wrong changelog entry 2017-06-05 16:04:32 +02:00
Paul Klimov
40e5702b6b Fixes #5108 DateValidator resets $timestampAttribute value on empty attribute (#14242)
* `yii\validators\DateValidator` now resets `$timestampAttribute` value on empty validated attribute value

* array-value test at `DateValidatorTest` restored
2017-06-05 11:50:02 +02:00
Carsten Brandt
b8d5a35916 Merge pull request #14241 from cebe/migration-namespaces
Added support for specifying aliases for migrationNamespaces
2017-06-05 11:38:26 +02:00
Carsten Brandt
844eacba26 Update BaseMigrateController.php
make sure console arguments are recognized as array.
2017-06-05 11:31:38 +02:00
Paul Klimov
cd3c6404cb Fixes #4999: Added support for wildcards at yii\filters\AccessRule::$controllers 2017-06-02 21:19:38 +03:00
Carsten Brandt
6ec6f8d76c moved include file logic to separate method 2017-06-02 13:35:45 +02:00
Carsten Brandt
5288577221 make migrationPath accept an array 2017-06-02 13:35:45 +02:00
Tobias Munk
deb1def9d3 added alias syntax support
fixes #13356
fixes #13359
2017-06-02 13:34:34 +02:00
Carsten Brandt
cb9462b224 Added support for specifying aliases for migrationNamespaces
This is used to specify pathes to migrations that do not have
namespaces.

While not directly supported by the migration command provideded by the
framework, these migrations exist in a lot of extensions because custom implementations
of migration controllers out of the framework were using this approach
to load multiple migrations from multiple paths.

Even the framework itself currently ships non-namespaced migrations:

- 17a1d91e4a/framework/rbac/migrations/m140506_102106_rbac_init.php
- 17a1d91e4a/framework/caching/migrations/m150909_153426_cache_init.php
- 17a1d91e4a/framework/log/migrations/m141106_185632_log_init.php

This change allows existing applications to adopt the new namespace-based approach
while keeping existing migrations. While it would be possible to add
namespaces to migrations in the application itself, it is not easily possible
to add namespaces to migrations that come from external sources like
extensions.
2017-06-02 13:34:34 +02:00
Carsten Brandt
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
Paul Klimov
0beb59305c Fixes #13058: Fixed caught exception thrown during view file rendering produces wrong output 2017-06-02 01:30:21 +03:00
leandrogehlen
17a1d91e4a Allows override query relation in descendant class
fixes #13441
close #13642
2017-06-01 11:53:43 +02:00
Carsten Brandt
6e7ea782c0 fix cloning of DB connection for sqlite in-memory db
fixes #14131
close #14232
2017-06-01 11:43:49 +02:00
nanodesu88
67b9a57e86 additional fix for #13501
close #13593
2017-05-31 19:17:28 +02:00
Carsten Brandt
a1f396c5d8 improved docs 2017-05-31 17:46:34 +02:00
Felipe Sateler
88bbd61988 Alternative implementation for passing parameters to AccessRule roles
fixes #8426: `yii\filters\AccessRule` now allows passing GET or other parameters to the role checking function
replaces #8426
2017-05-31 17:46:34 +02:00
SilverFire - Dmitry Naumenko
f7c9e6b852 Enhanced FixtureController::getFixtureRelativeName()
Updated CHANGELOG
2017-05-30 21:27:50 +03:00
Skiba Max
51dd58cf34 Fixed #13551: loading fixtures in subdirectories 2017-05-30 21:27:43 +03:00
viwek
49ab20139c Inserted missing * on line 972 (#14224) [skip ci] 2017-05-28 17:30:36 +05:00
Alex-Code
7c6620a65f Fixes #13846: Fixed Query::count() issue with orderBy 2017-05-28 15:27:45 +03:00
Alexander Makarov
9b8b965fcb Fixes #14211: Fixed regression in Unique and Exist validators 2017-05-26 00:31:30 +03:00
corpsepk
ac70262bfc Fixed typo in BaseFileHelper::findFiles() docs (#14200) [skip ci] 2017-05-24 20:59:35 +05:00
bscheshirwork
921147dca5 Fixes #14161, #14150: fixed primary table aliasing (include case manual set alias) in validators 2017-05-16 13:24:49 +03:00
Sergey Makinen
118fc08af8 Fix dropping unique/indexes 2017-05-15 20:55:26 +03:00
Sergey Makinen
4104235258 Fix schema caching on commands 2017-05-15 20:55:25 +03:00
Sergey Makinen
73ac13e6d7 Implement retrieving dbms constraints 2017-05-15 20:55:25 +03:00
Alexander Makarov
625d554e3a Additional edge case for #14150 2017-05-12 18:06:27 +03:00
Alexander Makarov
8a087c8537 #14150: Added {{ and }} to getTablesUsedInFrom() output 2017-05-12 15:55:37 +03:00
Alexander Makarov
b151b1cdb2 Fixes #14150 2017-05-12 14:17:23 +03:00
Bizley
ddee256a1a Fixes #14133: Fixed bug when calculating timings with mixed nested profile begin and end in yii\log\Logger::calculateTimings() 2017-05-12 11:48:16 +03:00
Alexander Makarov
1838370da0 Fixed changelog [skip ci] 2017-05-12 00:47:59 +03:00
Alexander Makarov
d331b72be6 Merge branch 'master' into unique-validator-fix 2017-05-12 00:45:55 +03:00
Alexander Makarov
96382454b1 Additional refactoring as suggested by @dynasource 2017-05-10 13:08:29 +03:00
ejsoft
e5799da1c0 Remove unnecessary variable from UrlRule.php (#13948) 2017-05-10 12:31:05 +03:00
Robert Korulczyk
daa8b67c7b Fixes #13350, #14094, #11288
- Bug #13350: Fixed bug with incorrect caching of `yii\web\UrlRule::createUrl()` results in `yii\web\UrlManager`.
- Bug #14094: Fixed bug when single `yii\web\UrlManager::createUrl()` call my result multiple calls of `yii\web\UrlRule::createUrl()` for the same rule.
- Enh #11288: Added support for caching of `yii\web\UrlRule::createUrl()` results in `yii\web\UrlManager` for rules with defaults.
2017-05-10 12:30:43 +03:00
Alexander Makarov
9828bde1db Added escaping for column name 2017-05-10 12:04:54 +03:00
Carsten Brandt
5c72047426 Fixed ambiguous column name in SELECT in UniqueValidator
fixes #14042
2017-05-10 12:02:48 +03:00