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.
2016-02-12 12:35:28 +01:00
Carsten Brandt
157d6c79cc
fixes #4972 by adding and alias() to ActiveQuery
...
allows defining an alias without knowing the model table name.
2016-02-12 12:34:16 +01:00
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
2016-02-11 15:58:54 +01:00
SilverFire - Dmitry Naumenko
3a3fdd9665
Updated UPGRADE.md ( closes #9953 )
2016-02-11 16:52:39 +02:00
Evgeniy Tkachenko
af9462bd31
Update return phpDoc queryOne & queryScalar.
2016-02-11 16:34:40 +03:00
SilverFire - Dmitry Naumenko
6449e1a09f
Merge branch 'master' into fix-auth-method
2016-02-11 00:42:43 +02:00
Alexander Makarov
4cd7f37103
Changelog for #10797
2016-02-10 12:07:55 +03:00
muhammadcahya
557b32f1d7
Efficiency CSS on Requirement Checker
...
I think this is no need a 6807 lines only for css style, 'same' css code, unused code inside core framework.
Like @samdark say, I think will be better to remove unused stuff.
closed issue : https://github.com/yiisoft/yii2/issues/10791
2016-02-10 10:44:39 +07:00
muhammadcahya
d0e285ea3a
Change to semantic html 5 elements/tags
2016-02-10 10:42:03 +07:00
Dmitry Naumenko
a5d6bd5c8e
Merge pull request #10783 from yiisoft/7964-i18n-fallback
...
Fixed i18n message sources to load fallback messages in a smarter way
2016-02-10 00:39:55 +02:00
SilverFire - Dmitry Naumenko
b5c52ecbae
PHPDoc updates
2016-02-10 00:39:25 +02:00
SilverFire - Dmitry Naumenko
4f3adc2cb8
Added i18n/migration static migrations
2016-02-10 00:38:45 +02:00
Dmitry Naumenko
09990ccc86
Merge pull request #10782 from yiisoft/ip-validator-message
...
IpValidator: use message property for default error
2016-02-09 23:39:27 +02:00
SilverFire - Dmitry Naumenko
63eb47fb39
IpValidator - added examples to class PHPDoc
2016-02-09 09:45:32 +02:00
SilverFire - Dmitry Naumenko
b804dbb98f
IpValidator JS validation: wrongIp->message renamed
2016-02-08 19:44:44 +02:00
SilverFire - Dmitry Naumenko
15f70ce615
Merge branch 'master' into ip-validator-message
2016-02-08 19:41:42 +02:00
Alexander Makarov
9edd26eef7
Updated composer.json dependency versions. Fixes #10785
2016-02-08 11:33:16 +03:00
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
2016-02-07 23:08:52 +02:00
Andrew Nester
78de315794
Fixed processing nested objects multisort in BaseArrayHelper
...
fixes #8348
close #10607
2016-02-07 20:20:32 +01:00
Jan Siqueira
f9473ebc61
Fix default value parsing in pgsql\Schema for null values
...
Fixes #10692
close #10694
2016-02-07 20:07:17 +01:00
Carsten Brandt
f620f4de90
phpdoc fixes
2016-02-07 19:48:13 +01:00
Carsten Brandt
93ed683502
IpValidator: use message property for default error
...
its better to use already existing `message` property for the default error message.
2016-02-07 19:30:29 +01:00
Carsten Brandt
e41c2e3946
validators PHPdoc
2016-02-07 19:16:31 +01:00
Carsten Brandt
effe3b0b94
phpdoc adjustments
2016-02-07 18:12:22 +01:00
Carsten Brandt
ef5ce2d4c1
missing @since annotations in helpers
2016-02-07 17:46:12 +01:00
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.
2016-02-07 16:35:28 +01:00
Carsten Brandt
e43c41c9ea
db layer phpdoc fixes
2016-02-07 16:33:26 +01:00
mdmunir
2505e7ef63
Fixes #9785 : Added ability to invoke callback with dependency resolution to DI container
2016-02-07 14:55:45 +03:00
Alexander Makarov
b226252e08
Merge pull request #10765 from yiisoft/revert-action-di
...
Revert DI injection via controller action method signature
2016-02-07 12:28:15 +03:00
Alexander Makarov
26a1e098ff
Removed controller action injection-related changelog line
2016-02-07 12:16:42 +03:00
lubosdz
c2214af969
[SK] Updated locale strings
2016-02-06 22:38:43 +01:00
Carsten Brandt
5db772ef7b
cleanup console namespace changes
2016-02-06 20:05:14 +01:00
Carsten Brandt
3f828d9599
alphabetical order for console core commands
2016-02-06 20:04:31 +01:00
Carsten Brandt
e8d309dddb
documentation fixes for 2.0.7
2016-02-06 19:47:13 +01:00
Carsten Brandt
364eb39eae
moved wrongly added CHANGELOG entry
2016-02-06 18:43:33 +01:00
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
2016-02-06 18:40:50 +01:00
Andrew Nester
fecd4dcfa5
10739 - Multiple slashes at the end of route should not be accepted as valid url
2016-02-05 16:38:49 +03:00
Dmitry Naumenko
a9bb31c4c0
Merge pull request #10753 from SilverFire/10751-url-validator
...
Fixed UrlValidator pattern to improve matching
2016-02-05 14:47:47 +02:00
SilverFire - Dmitry Naumenko
d12af259e0
Fixed UrlValidator pattern to improve matching
2016-02-05 14:47:12 +02:00
Andrew Nester
a0ca37ed6a
10545 - Fix for XMLResponseFormatter to format models in a proper way
2016-02-05 14:31:12 +03:00
SilverFire - Dmitry Naumenko
b43ebcc368
yii\db\Connection::createCommand() removed DI usage for performance reasons
2016-02-04 14:32:09 +02:00
Carsten Brandt
49c15fa304
better documentation for Command in db Connection
2016-02-04 13:24:08 +01:00
SilverFire - Dmitry Naumenko
8b92b08306
db/Connection - update PHPDocs, update CHANGELOG
2016-02-04 14:03:57 +02:00
Sam Mousa
aa36f63f4c
Fixed issue #7674
2016-02-04 14:03:46 +02:00
SilverFire - Dmitry Naumenko
4c31c26628
EmailValidator - the name of the mailbox is no longer limited with the length
2016-02-01 23:49:51 +02:00
Evgeniy Tkachenko
8b9514fd5f
Refactoring yii\web\Request::getMethod
2016-01-28 23:15:10 +03:00
Carsten Brandt
5e4485673f
Merge pull request #10682 from yiisoft/group-order-expression
...
DB Expressions in groupBy and orderBy
2016-01-28 17:20:31 +01:00
Carsten Brandt
8680f0f1d8
BC way of merging expression params of orderBy and groupBy
...
this logic should be moved to the sub methods in 2.1
2016-01-28 17:01:16 +01:00
Carsten Brandt
f0a62cdbd3
allow expressions in GROUP BY
2016-01-27 16:53:20 +01:00
Carsten Brandt
5a462dc5d2
added tests and documentation for #8824
2016-01-27 16:26:43 +01:00