Pavel Chaplygin
e38310546e
Fixes #14334 : Fixed \yii\db\QueryBuilder::buildNotCondition loses params when operand is \yii\db\Expression
2017-06-27 14:46:14 +03:00
Alexander Makarov
d4c15c36d0
Fixes #14304 : Fixed yii\validators\UniqueValidator and yii\validators\ExistValidator to skip prefixes in case expressions are used
2017-06-27 00:02:47 +03:00
Sergey Makinen
3de6f8e397
Rename DefaultConstraint to DefaultValueConstraint
2017-06-21 12:19:16 +03:00
Elvira Sheina
cfaec11da5
Fixes #13824 : Support extracting concatenated strings in yii message
2017-06-21 01:25:12 +03:00
Robert Korulczyk
8d05e81bd4
Fixes #14307 : Fixed PHP warning when yii\console\UnknownCommandException is thrown for empty command
2017-06-18 18:40:15 +03:00
Sergey Makinen
c8856ccd4e
Fix merging issues & CS
2017-06-17 01:02:01 +03:00
Carsten Brandt
f212bc6caf
ensure tablenames are not replaced in insert and update
2017-06-16 16:02:34 +02:00
Sergey Makinen
f820d2ca36
Merge branch 'master' into db-constraints
2017-06-16 16:52:43 +03:00
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
Robert Korulczyk
ab68caa867
Removed unused local var in JS test ( #14093 )
2017-06-11 19:20:31 +03:00
SilverFire - Dmitry Naumenko
cb53b2feec
Fixes #14081 : Added yii\caching\CacheInterface to make custom cache extensions adoption easier
2017-06-11 19:18:33 +03:00
Tigrov
2b7e8be1e8
Fixes #14192 : Fixed wrong default null value for TIMESTAMP when using PostgreSQL
2017-06-11 18:48:15 +03:00
Kolyunya
9031a115b9
Fixes #13586 : Added $preserveNonEmptyValues property to the yii\behaviors\AttributeBehavior
2017-06-11 17:56:06 +03:00
vladis84
f6b54e1ac8
Fixes #14089 : Added tests for yii\base\Theme
2017-06-11 17:38:23 +03:00
Carsten Brandt
2b9f0006d5
added example for using unsupported PHP format in yii formatter
...
fixes #14278
2017-06-09 12:07:38 +02: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
226f524da3
skip failing HHVM test
...
see https://github.com/yiisoft/yii2/issues/14244
2017-06-05 13:25:51 +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
Paul Klimov
cd3c6404cb
Fixes #4999 : Added support for wildcards at yii\filters\AccessRule::$controllers
2017-06-02 21:19:38 +03:00
Carsten Brandt
5288577221
make migrationPath accept an array
2017-06-02 13:35:45 +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
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
Carsten Brandt
3e94919592
added failing test for #13593
2017-05-31 19:14:21 +02:00
Carsten Brandt
2feb0945ca
Fixed RBAC databases tests
...
tests were reusing static DB connection instance resulting in all tests
to be run against MySQL only!
PgSQL and Sqlite tests are now failing because of the issue reported in #13501 .
2017-05-31 18:55:44 +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
Skiba Max
51dd58cf34
Fixed #13551 : loading fixtures in subdirectories
2017-05-30 21:27:43 +03:00
Ilya Rogov
e2218cbbae
Add test coverage of yii\helpers\Html ( #14220 )
2017-05-28 18:03:36 +05:00
Ilya Rogov
0d9cd0ccd7
Add test coverage of yii\helpers\BaseJson ( #14217 )
2017-05-28 17:32:41 +05:00
Ilya Rogov
b07f2018de
Add test coverage of yii\helpers\BaseMarkdown ( #14223 )
2017-05-28 17:31:42 +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
Ilya Rogov
21a7a68e45
Add test coverage of yii\helpers\BaseArrayHelper ( #14205 )
2017-05-25 14:12:13 +05:00
Sergey Makinen
52f8539135
Add Command tests
2017-05-15 20:55:26 +03:00
Sergey Makinen
47f837db0b
Fix constraint tests
2017-05-15 20:55:26 +03:00
Sergey Makinen
3a384d0ded
Disable column comment test on old CUBRID
2017-05-15 20:55:26 +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
d331b72be6
Merge branch 'master' into unique-validator-fix
2017-05-12 00:45:55 +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
Carsten Brandt
5c72047426
Fixed ambiguous column name in SELECT in UniqueValidator
...
fixes #14042
2017-05-10 12:02:48 +03:00
Carsten Brandt
5ed6910e1c
Added support for cloning a db connection
...
improved fix #14020
fixes #13890
https://github.com/yiisoft/yii2/pull/14020/files#r115185865
close #14121
2017-05-10 09:46:10 +02:00
Alexey Rogachev
80d6f7323a
Do not render empty row in GridView when data is empty and emptyText set to false
...
Fixes #13352
close #13422
2017-05-10 09:40:29 +02:00
Carsten Brandt
156f09fc6e
Merge pull request #14056 from cebe/db-logging
...
added option to disable query logging in DB command
2017-05-10 01:25:02 +02:00
Alexander Makarov
23cc4bf4fe
Further changes for unique and exist validators
...
- Combined methods for getting names and aliases of from tables
- Normalized names and aliases
- Added MSSQL syntax
- Added support for spaces in aliases and table names
2017-05-10 00:35:40 +03:00
Klimov Paul
473598ac8c
Added support for sorting by expression to \yii\data\Sort
2017-05-09 17:26:49 +03:00
Leandro Gehlen
25242adb91
Fixes #5442 : Fixed problem on load fixture dependencies with database related tests
2017-05-08 22:31:12 +03:00