Klimov Paul
|
b9cbc56330
|
Fixed `yii\db\ActiveRecord::with()` unable to use relation defined via attached behavior in case `asArray` is enabled
|
7 years ago |
Robert Korulczyk
|
5a8c3d537b
|
Enable `phpdoc_summary` rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
|
7 years ago |
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.
|
7 years ago |
Sam Mousa
|
e26bc50441
|
Fixed wrong variable returned.
|
8 years ago |
Sam Mousa
|
afb93bf743
|
Apply grouping after loading relations.
|
8 years ago |
Boudewijn Vahrmeijer
|
7c7d751e67
|
Fixes #12015 Changed visibility `yii\db\ActiveQueryTrait::createModels()` from private to protected
|
8 years ago |
Robert Korulczyk
|
4aa935e69e
|
Fixes #12055: Changed `boolean` to `bool` and `integer` to `int` in phpdoc
|
8 years ago |
Carsten Brandt
|
c5a60ce2ec
|
Avoid `new $this->modelClass` in ActiveQuery::findWith()
reduces the issue described in #8639 to `joinWith()` and `asArray()`.
close #10940
|
9 years ago |
githubjeka
|
9ae21e5df2
|
phpDoc of joinWith updated to \yii\db\ActiveQuery
|
9 years ago |
githubjeka
|
2b6ceb1eb7
|
phpDoc updated
|
9 years ago |
SilverFire - Dmitry Naumenko
|
cd87d67f34
|
Global DOCS update: ~~~ replaced with ```
|
9 years ago |
Alexander Mohorev
|
68c30c1034
|
Replace aliases of functions
|
9 years ago |
Alexander Makarov
|
67658cf57d
|
Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly
|
9 years ago |
Nikola Kovacs
|
f11bdfa2a7
|
Grammar fix: followings -> following
|
10 years ago |
Jose
|
4e6b1fd5c6
|
Local loop variable added to fix #7271 bug
|
10 years ago |
Jose Lorente
|
98759201ac
|
Fixed bug #7271. Classes that call '*::populateRecord()' after retrieving data from ddbb call now the method on the class of the model returned by '*::instantiate()'. Tests for mysql, elasticsearch and mongodb attached.
|
10 years ago |
Alexander Makarov
|
0c14f47f9a
|
Fixes #3793: Changed inline autocomplete hints style to get more IDEs support
|
10 years ago |
Carsten Brandt
|
871ae29c9c
|
call asArray() instead of assign directly
fixes #3891
|
10 years ago |
Thiago Talma
|
c1445871f4
|
Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
|
11 years ago |
Carsten Brandt
|
44dbb2235a
|
cleanup docs
|
11 years ago |
Qiang Xue
|
54e08f3f01
|
fixed build break.
|
11 years ago |
Qiang Xue
|
8b4dfcc876
|
Fixes #2955: Changed the signature of ActiveQuery constructors and `ActiveRecord::createQuery()` to simplify customizing ActiveQuery classes
|
11 years ago |
Carsten Brandt
|
a35ef1ce7a
|
added andOnCondition and orOnCondition to ActiveQuery
fixes #2957
|
11 years ago |
Carsten Brandt
|
bf3c75147d
|
reverted breaking PHPdoc codestyle changes
issue #2852
|
11 years ago |
SonicGD
|
b5f8a4dc22
|
Reformat code te be PSR-2 compatible
|
11 years ago |
Carsten Brandt
|
cb8237c1b7
|
merged ActiveQueryInterface and ActiveRelatioInterface
|
11 years ago |
Alexander Makarov
|
dd26d39dd8
|
Removed unused namespace imports
|
11 years ago |
Carsten Brandt
|
16e1aff41b
|
renamed ActiveRecord::create() to populateRecord()
- refactored elasticsearch AR to make type and index available in
instantiate(), issue #1313
fixes #2281
|
11 years ago |
Alexander Makarov
|
b119576041
|
Fixes #2016: removed ability to declare scopes in ActiveRecord leaving it to ActiveQuery. Changed documentation accordingly.
|
11 years ago |
Carsten Brandt
|
829850da23
|
removed phpdoc about nonexisting param
|
11 years ago |
Carsten Brandt
|
796284cba1
|
reworked fix for #1993
|
11 years ago |
Carsten Brandt
|
81d23332df
|
afterFind event in AR is now called after relations have been populated
fixes #1993
|
11 years ago |
Alexander Makarov
|
349f2c9e32
|
phpdoc fixes, unused variable
|
11 years ago |
Qiang Xue
|
0c38655217
|
psr-4 move
|
11 years ago |
Qiang Xue
|
dc01411bea
|
Fixes #1791
|
11 years ago |
Qiang Xue
|
eb4385d4c9
|
improved error message of calling invalid scope method.
|
11 years ago |
Qiang Xue
|
b0568612bf
|
Fixes #1402: AR eager loading has problem when asArray() is used together with viaTable().
|
11 years ago |
Qiang Xue
|
a2fe128455
|
refactored query and relation.
|
11 years ago |
Qiang Xue
|
42a58870fe
|
moved db interfaces and traits back to yii/db.
|
11 years ago |
Carsten Brandt
|
1acdbb741c
|
moved indexBy() trait -> interface + removed findWith from interface
|
11 years ago |
Carsten Brandt
|
51faa62eca
|
updated interface and trait php-doc in yii\ar
[ci skip]
|
11 years ago |
Carsten Brandt
|
65338972c7
|
refactored ActiveRecord classes to use Interfaces and traits
this allows us to implement other activerecord implementations based on
NoSQL dbms
|
11 years ago |
Carsten Brandt
|
b8e31d50bb
|
renamed AR trait classes
|
11 years ago |
Carsten Brandt
|
4653526262
|
moved common parts of db ActiveRelation and Query to traits
these parts can be reused in other ActiveRecord implementations
|
11 years ago |
Alexander Makarov
|
1f6a823073
|
Short array syntax
|
11 years ago |
Alexander Makarov
|
817516adc5
|
Added missing return
|
11 years ago |
Alexander Makarov
|
6488fe47ec
|
Better phpdoc for chained method calls
|
11 years ago |
Qiang Xue
|
aede3c9f47
|
Removed duplicated indexBy declaration.
|
11 years ago |
Qiang Xue
|
6dba4da3ed
|
Fixes #828: refactored QueryBuilder::build()
|
11 years ago |
Qiang Xue
|
d1ebf65597
|
Fixed the issue that ActiveQuery::one() doesn't bring back related objects when asArray is true.
|
11 years ago |