1265 Commits

Author SHA1 Message Date
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
cb53b2feec Fixes #14081: Added yii\caching\CacheInterface to make custom cache extensions adoption easier 2017-06-11 19:18:33 +03:00
2b7e8be1e8 Fixes #14192: Fixed wrong default null value for TIMESTAMP when using PostgreSQL 2017-06-11 18:48:15 +03:00
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
fddb34b91c added param binding examples for update() and delete()
fixes #14218
2017-06-07 23:19:47 +02:00
be658f82bf release version 2.0.12 2017-06-05 16:33:41 +02:00
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
17a1d91e4a Allows override query relation in descendant class
fixes #13441
close #13642
2017-06-01 11:53:43 +02:00
6e7ea782c0 fix cloning of DB connection for sqlite in-memory db
fixes #14131
close #14232
2017-06-01 11:43:49 +02:00
49ab20139c Inserted missing * on line 972 (#14224) [skip ci] 2017-05-28 17:30:36 +05:00
7c6620a65f Fixes #13846: Fixed Query::count() issue with orderBy 2017-05-28 15:27:45 +03:00
9b8b965fcb Fixes #14211: Fixed regression in Unique and Exist validators 2017-05-26 00:31:30 +03:00
118fc08af8 Fix dropping unique/indexes 2017-05-15 20:55:26 +03:00
4104235258 Fix schema caching on commands 2017-05-15 20:55:25 +03:00
73ac13e6d7 Implement retrieving dbms constraints 2017-05-15 20:55:25 +03:00
625d554e3a Additional edge case for #14150 2017-05-12 18:06:27 +03:00
8a087c8537 #14150: Added {{ and }} to getTablesUsedInFrom() output 2017-05-12 15:55:37 +03:00
b151b1cdb2 Fixes #14150 2017-05-12 14:17:23 +03:00
d331b72be6 Merge branch 'master' into unique-validator-fix 2017-05-12 00:45:55 +03:00
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
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
fb2441c3d7 moved query log logic into private method and reduced calls to getRawSql()
fixes #12528
2017-05-08 00:04:37 +02:00
65ea226729 added option to disable query logging in DB command
fixes #12528
2017-05-08 00:04:13 +02:00
8c30bab105 Eliminated else branches in beforeSave() and beforeDelete() phpdoc examples [skip ci] 2017-05-04 19:03:31 +03:00
7b2df5554c Fixes #14072: Fixed a bug where \yii\db\Command::createTable(), addForeignKey(), dropForeignKey(), addCommentOnColumn(), and dropCommentFromColumn() weren't refreshing the table cache on yii\db\Schema 2017-05-02 18:26:02 +02:00
7a2737105b Updated PHPdoc 2017-05-01 15:59:37 +03:00
2d0e3fb9ef Fixed Oracle SQL queries with IN condition and more than 1000 parameters 2017-05-01 15:59:37 +03:00
15acf45ab2 Merge branch 'master' of https://github.com/yiisoft/yii2 into schema-cache-fixes 2017-04-27 10:35:30 -07:00
e242e9b0ee Fixes #14072: clear table schema cache for all methods that affect cache 2017-04-27 10:34:08 -07:00
d7fad8a555 Fixes #14059: Removed unused AR instantiating for calling of static methods 2017-04-26 16:09:55 +03:00
37fc6c5afb Alternative names 2017-04-26 15:36:36 +03:00
63253ceafc PHPDocs and code style fixed 2017-04-26 09:26:01 +03:00
7db93fc33d Refactored solution to be contained within ActiveQuery instead of helper 2017-04-25 23:24:27 +03:00
28d8fa66fc Fixes #14012: yii\db\pgsql\Schema::findViewNames() was skipping materialized views 2017-04-21 02:23:51 +03:00
224201950d Fixes #13911: Significantly enhanced MSSQL schema reading performance 2017-04-19 13:05:46 +03:00
02ffbb28ec update AR docs 2017-04-18 23:35:16 +02:00
cd8b98bb92 Added note to findOne and findAll docs (#14002) [skip ci]
Added note to findOne and findAll docs to clearly state that complex conditions are not supported.
2017-04-18 14:39:55 +03:00
454f0a9301 Fixes #13807: Fixed yii\db\QueryBuilder to inherit subquery params when building a INSERT INTO ... SELECT query 2017-04-17 03:31:43 +03:00
0fdd5b81dd Revert "update phpdoc annotation in BaseActiveRecord"
This reverts commit 0f78008bc71af6aca45152452f9f5017e7361e6a.

https://github.com/yiisoft/yii2-gii/pull/267#issuecomment-293965278
2017-04-13 19:21:40 +02:00
0f78008bc7 update phpdoc annotation in BaseActiveRecord
https://github.com/yiisoft/yii2-gii/pull/267#issuecomment-293958830
2017-04-13 18:56:11 +02:00
e1b1622244 Fix \yii\db\QueryInterface type hints (#13959) [skip ci] 2017-04-11 18:20:41 +03:00
11761ac42a Fix \yii\db\QueryTrait type hints (#13956) [skip ci] 2017-04-11 15:51:32 +03:00
e62ea0136c Fixed phpdoc broken links to PHP manual pages [skip ci] 2017-04-11 00:43:38 +03:00
8326a593ce Use ArrayHelper::getValue(). 2017-04-03 14:51:30 +02:00
902c2b563d Fixes #13831: Added more info about transactions in migrations to phpdoc [skip ci] 2017-04-02 00:41:34 +03:00
e26bc50441 Fixed wrong variable returned. 2017-03-31 10:27:52 +02:00
afb93bf743 Apply grouping after loading relations. 2017-03-30 16:01:19 +02:00
6da1ec6fb2 Fixes #13845: mt_rand() is not used instead of rand() in yii\captcha\CaptchaAction + minor code improvements 2017-03-24 13:50:13 +03:00
1b322f519f Fixes #13776: Fixed setting precision and scale for decimal columns in MSSQL 2017-03-16 19:38:56 +03:00
8192f84850 Fix SQLite resetSequence inconsistencies (#13755, #13630) 2017-03-15 15:04:37 +03:00