Daniel Gomez Pan
edfdb54430
WIP #10840 : rename shortCuts() to optionAliases()
9 years ago
Carsten Brandt
b9880f3247
added test for custom index hints in FROM and JOIN
...
close #10869
9 years ago
Daniel Gomez Pan
a0a44c382a
WIP #10840
9 years ago
Sam Mousa
af5f5d0e3e
Fixes #9851 : Fixed partial commit / rollback in nested transactions
9 years ago
quantum
7b46bd1f7c
Fixes #10451 : Check of existence of `$_SERVER` in `\yii\web\Request` before using it
9 years ago
Vladimir Khramov
ef8b0a2be0
parameter dimensions in ArrayHelper::index
9 years ago
SilverFire - Dmitry Naumenko
624be05be0
Updated TimestampBehaviorTest to test the callable in array format as value
9 years ago
Sam Mousa
8ea4c660da
Several improvements to DI container
...
- Refactored invoke into separate resolve method (reusability)
- Added support for associative params array
- Added PHPUnit group doc to DI tests.
- Improved the tests for better coverage, and fixed a bug discovered by the new tests.
close #10811
9 years ago
Carsten Brandt
4f4a661061
fixed test break when formatter is loaded before intl magic
9 years ago
Carsten Brandt
ce35739469
joinWith implementation cleanup
9 years ago
Carsten Brandt
3f8df39f45
more tests for joinWith alias
...
also test on joining the same relation twice
9 years ago
Carsten Brandt
94571e2c23
improved tests for ActiveQuery::joinWith alias
9 years ago
Carsten Brandt
5f19e7aa41
Added Alias Syntax for joinWith()
...
Add alias syntax to joinWith(), e.g. joinWith('author a').
No need to know the table name for defining an alias for the relation.
fixes #2377 , alternative to #8788 , which allows later implementation of
getting alias and column name ambiguation.
depends on #10813 to be merged first.
9 years ago
Carsten Brandt
157d6c79cc
fixes #4972 by adding and `alias()` to `ActiveQuery`
...
allows defining an alias without knowing the model table name.
9 years ago
Klimov Paul
d22a3a0a07
Fixed `yii\validators\EachValidator` does not respect `skipOnEmpty` rule parameter
9 years ago
nainoon
076329bfba
add test for join with alias
...
close #8788
9 years ago
Klimov Paul
e4f71eef69
`CheckboxColumnTest` location fixed
9 years ago
boehsermoe
22dceedabb
Fixed DetailView for arrayable models
...
The toArray() function return [attribute => value] but there is need a list of attribute names.
UnitTest for the DetailView arrayable models
close #10760
9 years ago
SilverFire - Dmitry Naumenko
ef413d0337
AuthTest::testActive - fixed test case
9 years ago
Daniel Gomez Pan
295bb3e173
WIP #10764 : adjusted Html::beginTag and Html::endTag methods to be consistent
9 years ago
Daniel Gomez Pan
f4990b3879
WIP #10764 : add extra test for Menu class
9 years ago
SilverFire - Dmitry Naumenko
32c424da10
Fixed i18n message sources to load fallback messages in a smarter way
...
Added migration and unit-tests for `yii\i18n\DbMessageSource`
Closes #7964
9 years ago
Carsten Brandt
0f30b0843b
added test for SORT_DESC
...
for #8348 and #10607
9 years ago
Andrew Nester
78de315794
Fixed processing nested objects multisort in BaseArrayHelper
...
fixes #8348
close #10607
9 years ago
Carsten Brandt
273bd9ba6d
add test for ActionFilter::isActive
9 years ago
Daniel Gomez Pan
cd7039e97c
WIP #10764
9 years ago
Carsten Brandt
ddade3fc6e
fixed behavior of AuthMethod::isActive
...
this is an adjustment of #10188 fixing #7405
isActive() should not be affected in any way by specifying "optional" property.
isActive() should be determined from only and except.
If it is active it can then be checked if optional or not.
Currently this changes the behavior that except will always have precedence.
9 years ago
mdmunir
2505e7ef63
Fixes #9785 : Added ability to invoke callback with dependency resolution to DI container
9 years ago
Carsten Brandt
42b8569846
Revert DI injection via controller action method signature
...
reverts b7020065c
and related commits.
reverts implementation of #9476
For reasons, see discussion https://github.com/yiisoft/yii2/issues/9476#issuecomment-179749039
9 years ago
Andrew Nester
fecd4dcfa5
10739 - Multiple slashes at the end of route should not be accepted as valid url
9 years ago
SilverFire - Dmitry Naumenko
d12af259e0
Fixed UrlValidator pattern to improve matching
9 years ago
Andrew Nester
a0ca37ed6a
10545 - Fix for XMLResponseFormatter to format models in a proper way
9 years ago
SilverFire - Dmitry Naumenko
08ce8c0718
EmailValidatorTest - spelling typo fixed
9 years ago
SilverFire - Dmitry Naumenko
4c31c26628
EmailValidator - the name of the mailbox is no longer limited with the length
9 years ago
Alexander Makarov
12761bf677
MSSQL does not support explicit value for an IDENTITY column #9773
9 years ago
Alexander Makarov
e6f1179b62
Fixed MSSQL expected test result: we're adding ORDER BY (SELECT NULL) to limit and order queries and query params are empty array by default
9 years ago
Alexander Makarov
c36e679519
MSSQL doesn't have SUBSTR and isn't able to use expressions in ORDER BY and GROUP BY
9 years ago
Carsten Brandt
4c6ecbe79c
fixed wrong assertation in test
9 years ago
Carsten Brandt
261b3fd39b
added a test for QueryBuilder PK
9 years ago
Carsten Brandt
f0a62cdbd3
allow expressions in GROUP BY
9 years ago
Carsten Brandt
5a462dc5d2
added tests and documentation for #8824
9 years ago
Vit S
bdddcc54ad
code review fixes
9 years ago
Andrew Nester
61df727eaf
Expression objects for orderBy should be handled in QueryBuilder
...
fixes #10535
close #10637
- Added test to prove orderBy accepts \yii\db\Expression
9 years ago
githubjeka
dabbb81e07
Added test for check the invalid attribute
9 years ago
githubjeka
3ebe092828
Reproduce bug
9 years ago
Andrew Nester
6acab778da
10629 - BaseStringHelper::truncateHtml fix - should not add suffix if words count less than needed #10629
9 years ago
Andrew Nester
d282d5fe7f
Updated doc block for SessionTest
9 years ago
Andrew Nester
ab25b8a358
10218 - Fix for session regenerate id issue that occured after user logged out #10218
9 years ago
SilverFire - Dmitry Naumenko
6eb9830d64
UniqueValidatorTest, CHANGELOG - fixed spelling
9 years ago
Andrew Nester
ed23b97baf
#10574 - Fix for BaseArrayHelper to work with invalid characters in proper way
9 years ago