fe8a0a6a2e
Enable no_useless_else rule in php-cs-fixer ( #14420 )
2017-07-10 11:26:21 +03:00
e0dde88b87
Merge PR #14015 branch 'db-constraints' from sergeymakinen/yii2
...
Implement retrieving DBMS constraints
* db-constraints2: (21 commits)
CHANGELOG for #14105
added missing abstract methods to ConstraintFinderTrait
avoid dependency of SqlTokenizer on sqlite implementation
Mention an usage magic in descriptions
Fix an unknown variable usage bug
updated phpdoc
make schema cache version a constant
Have I fixed these phpdocs? Let’s see…
Fixed phpdoc [skip ci]
Mark not supported constraint retrieving methods
Add PHPDoc
Fix typo [skip ci]
Rename DefaultConstraint to DefaultValueConstraint
Fix imports
Fix merging issues & CS
Add Command tests
Fix constraint tests
Disable column comment test on old CUBRID
Fix dropping unique/indexes
Fix schema caching on commands
...
2017-07-07 22:57:58 +02:00
266bfc0419
fix phpDoc [skip ci] ( #14394 )
...
* fix phpDoc [skip ci]
* fix phpDoc [skip ci]
2017-07-06 00:39:36 +02:00
164d3c83e9
Have I fixed these phpdocs? Let’s see…
2017-07-03 15:10:48 +03:00
f820d2ca36
Merge branch 'master' into db-constraints
2017-06-16 16:52:43 +03:00
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
fddb34b91c
added param binding examples for update() and delete()
...
fixes #14218
2017-06-07 23:19:47 +02: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
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
e242e9b0ee
Fixes #14072 : clear table schema cache for all methods that affect cache
2017-04-27 10:34:08 -07:00
e62ea0136c
Fixed phpdoc broken links to PHP manual pages [skip ci]
2017-04-11 00:43:38 +03:00
6a7c01de72
Fixed broken link
2017-03-13 16:12:32 -03:00
25f08afc96
Fixes #8293 : yii\db\Query can be passed to insert method in yii\db\QueryBuilder
2017-01-28 23:47:26 +03:00
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
3d9945958d
Removed accidentally committed leftovers
2016-11-02 14:13:49 +03:00
dd71fa3958
Fixes #4113 : Error page stacktrace was generating links to private methods which are not part of the API docs
2016-11-02 13:42:11 +03:00
0fe27b9d3b
Refactored code in PR #9441
2016-04-19 17:48:25 +03:00
c9dfc90be0
Merge branch 'methods_for_schema_builder' of https://github.com/vaseninm/yii2 into vaseninm-methods_for_schema_builder
2016-04-19 12:21:33 +03:00
af9462bd31
Update return phpDoc queryOne & queryScalar.
2016-02-11 16:34:40 +03:00
e43c41c9ea
db layer phpdoc fixes
2016-02-07 16:33:26 +01:00
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
95f251edd1
Fixes #10084 : Improved DB docs
2015-11-04 12:08:18 +03:00
ce6e92b736
add comment control methods
2015-08-14 12:27:21 +03:00
b071587e0a
Improve docs for bindParam() $value
2015-08-04 16:08:38 +02:00
a2568d1ec8
updated some comments and @since annotations
2015-08-02 19:56:49 +02:00
310f9152e1
Fixes #9268 : Improved display of boolean parameters in logged SQL queries
2015-08-01 00:30:16 +03:00
8e4518c81f
Doc comments updated
2015-06-06 13:05:43 +03:00
0bfa2e2673
Reset of refreshTableName on yii\db\Command reuse ensured
2015-06-06 12:58:36 +03:00
72f9e63e10
Table schema auto refreshing on DDL added to yii\db\Command
2015-06-04 13:53:11 +03:00
0d48f1041e
Fixed yii\db\Command::getRawSql() unable to parse params specified without colon (':')
2015-06-02 13:45:28 +03:00
67658cf57d
Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly
2015-05-31 13:39:30 +03:00
8c22270591
db Command performance tweak
2015-05-03 21:03:55 +02:00
21f51400ef
added information about quoting to batch insert
2015-04-27 10:22:56 +02:00
4f49feee8d
fixes #7757 : in oci schema fix query results row keys case when PDO::ATTR_CASE is set to PDO::CASE_LOWER
...
added test to check support for setting PDO::ATTR_CASE and fetching table schemas
fixed fetching table schemas for mysql when PDO::ATTR_CASE is set
added tests for oci
fixed fetching composite fks for oci
improvements in oci schema parsing
removed autoIncrement detection fro oci and added test to verify that
implement batchInsert for oci
fix detecting IntegrityException for oci
fixed creating raw sql by skipping object and resource params
fix command test failing for sqlite
2015-03-29 21:57:13 +02:00
5a63ae324e
Fixes #7211 : Query caching should properly deal with the case when query result is false
2015-02-25 23:06:42 -05:00
8c3dce88dd
fixed phpdoc
2015-02-03 00:03:13 +01:00
8b79293ff2
added missing @since annotations
2014-11-27 18:11:14 +01:00
25a7c84ef2
Fixes #6271 : Query caching returns the same data when running the same SQL with different fetch modes
2014-11-26 11:10:55 -05:00
99a818c0b8
Fixes #3630 : yii\db\Command::queryInternal() is now protected
2014-10-24 03:47:20 +04:00
613d3071a7
Fixes #5106 : Refactored query caching to not load cache component when query caching is not used at all.
2014-09-23 20:59:51 -04:00
27132ced7c
Fixes #4384 .
2014-07-21 08:20:10 -04:00
a3e2b94adf
Fixes #3611 : Refactored query caching.
2014-07-20 20:59:38 -04:00
6e6005b148
Refactored code.
2014-07-20 08:01:16 -04:00
c16e5e4240
do not switch connection when in a transaction.
2014-07-11 22:39:07 -04:00
43333d9cad
Implemented master balancing.
2014-07-11 22:33:36 -04:00
91e0c5ae8a
Added Connection::useMaster() and refactored code.
2014-07-11 21:04:26 -04:00
e67d0b3c39
WIP
2014-07-11 14:01:44 -04:00