Commit Graph

7948 Commits

Author SHA1 Message Date
Dmitry Naumenko
ad0c19de3a Merge pull request #15643 from SilverFire/make-query-expression
Implement ExpressionInterface in Query
2018-02-12 17:54:46 +02:00
Robert Korulczyk
df91a9608f Fixes #14638: Added yii\db\SchemaBuilderTrait::tinyInteger() 2018-02-12 12:01:21 +03:00
Nikolay Oleynikov
74dc1cdc30 Fixes #13618: Active record now resets related models after corresponding attributes updates
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
2018-02-12 02:26:49 +03:00
Alexander Makarov
5e8fd58ddb 15630 fixed like escaping (#15642)
* Tests for like escaping.

* Fix for like condition escaping

* Fixed PHPDocs

* Simplify tests
2018-02-11 22:59:24 +03:00
SilverFire - Dmitry Naumenko
7e7cae7acb Changed conditions properties visibility to private 2018-02-11 20:07:09 +02:00
SilverFire - Dmitry Naumenko
23dbbb9fd7 Merge branch 'master' into make-query-expression 2018-02-11 20:05:32 +02:00
SilverFire - Dmitry Naumenko
8f6e2560bc Change BetweenColumnsCondition properties visibility 2018-02-11 20:03:58 +02:00
SilverFire - Dmitry Naumenko
1bbd2e1993 Add ExpressionInterface to Query class 2018-02-11 20:02:27 +02:00
SilverFire - Dmitry Naumenko
62d4604269 Added BetweenConditionBuilder
Replaces #12678, Fixes #11611
2018-02-11 18:55:07 +02:00
remond
78a151bdae Fixes #14859: Fixed OCI DB defaultSchema failure when masterConfig is used 2018-02-11 15:38:57 +03:00
Roman
eb758f6f04 Fixes #15031: Fixed incorrect string type length detection for OCI DB schema 2018-02-11 13:54:37 +03:00
Alexander Makarov
25f8b263e5 Fixes #14811: Fixed yii\filters\HttpCache to work with PHP 7.2 2018-02-11 12:08:01 +03:00
Brandon Kelly
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
SilverFire - Dmitry Naumenko
5bd6ed5684 Fixed issues in accidental merge of unfinished #15398 2018-02-10 14:10:14 +02:00
SilverFire - Dmitry Naumenko
856760eedf reordered changelog [skip ci] 2018-02-10 12:34:35 +02:00
SilverFire - Dmitry Naumenko
a56f9bb980 Updated CHANGELOG 2018-02-10 12:32:46 +02:00
胡倍玮
a036fac490 Extract cache from yii\db\Command to yii\db\CacheableQueryTrait and use it in yii\db\Query 2018-02-10 12:30:58 +02:00
Alexander Makarov
73fe41ee9f Removed redundant condition 2018-02-10 12:40:50 +03:00
Alexander Makarov
47e43a1b63 Try reverting init() 2018-02-10 11:50:14 +03:00
Alexander Makarov
d86db78276 Extra checks 2018-02-10 01:39:17 +03:00
Alexander Makarov
7924a22490 Remove extra condition 2018-02-10 01:07:20 +03:00
Alexander Makarov
07e623e415 Don't use open() method because it registers handlers 2018-02-10 00:42:17 +03:00
Alexander Makarov
a23a325ca7 Fixes #15627: Corrected session freezing/unfreezing not to attempt opening or closing connection if it isn't necessary 2018-02-10 00:06:10 +03:00
Dmitry Naumenko
e6f67a6a37 Merge pull request #15626 from CedricYii/hotfix/QueryBuilderOci
Fixes #7640: oci/QueryBuilder wrong namespace
2018-02-09 11:22:38 +02:00
Bizley
dbb49b436b Fixes #15625: yii\grid\DataColumn boolean filter dropdown list values are now in reversed order 2018-02-09 12:22:26 +03:00
CedricYii
ad128f1d86 Fixes #7640: oci/QueryBuilder wrong namespace
Fix commit d165863
2018-02-09 10:04:11 +01:00
Alexander Makarov
64d57043b1 Fixes #11401: Fixed yii\web\DbSession concurrency issues when writing and regenerating IDs 2018-02-09 03:13:50 +03:00
Brandon Kelly
2e55570e1f Fixes #15621: Fixed yii\web\User::getIdentity() returning null if an exception had been thrown when it was called previously 2018-02-09 01:34:33 +03:00
Dmitry Naumenko
de1750228d Fixes #13879: Added upsert support for yii\db\QueryBuilder and yii\db\Command 2018-02-09 01:05:50 +03:00
Alexander
24f4e3126a Bug #15523: yii\web\Session settings could now be configured after session is started (StalkAlex, rob006, daniel1302, samdark)
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
Co-authored-by: daniel.1302 <daniel.1302@gmail.com>
2018-02-08 20:11:45 +03:00
Гордиенко Владислав Юрьевич
7cafa65ad2 Fixes #15216: Added yii\web\ErrorHandler::$traceLine to allow opening file at line clicked in IDE 2018-02-07 22:36:29 +03:00
Alexander Makarov
e9bec0d246 Reordered property to top [skip ci] 2018-02-07 11:55:43 +03:00
Alexander Makarov
7bafb7bf09 Fixes #14488: Added support for X-Forwarded-Host to yii\web\Request, fixed getServerPort() usage 2018-02-07 00:01:50 +03:00
Zhukov Roman
40b038379f Fixes #13019: Support JSON in SchemaBuilderTrait 2018-02-06 16:35:49 +03:00
Alexander Makarov
846444d17e Refactor cacheable widget behavior (#15608) 2018-02-06 13:30:37 +03:00
Nikolay Oleynikov
37bd97ad9a Fixes #13679: Added yii\behaviors\CacheableWidgetBehavior 2018-02-06 01:33:49 +03:00
Mikk Tendermann
5550ad2021 Fixes #15595: yii\data\DataFilter can now handle lt,gt,lte and gte on yii\validators\DateValidator 2018-02-05 22:54:45 +07:00
SilverFire - Dmitry Naumenko
786a733502 Moved ExpressionBuilder creation logic out of QueryBuilder::buildExpression() to a separate method 2018-02-05 17:18:32 +02:00
SilverFire - Dmitry Naumenko
b139e865b7 Fixed PHPDocs. Resolves discussion d16586334d (commitcomment-27343531) 2018-02-05 16:40:50 +02:00
Alexander Makarov
c7e55450dd Reverted #14593
(reverted from commit a42bbd8f01)
2018-02-05 14:12:20 +03:00
Alexander Makarov
a42bbd8f01 Fixes #14593: Added yii\db\Command::EVENT_AFTER_EXECUTE event that is triggered after command is executed 2018-02-05 15:49:18 +07:00
Alexander Makarov
5a6c48db3d Fixed typo [skip ci] 2018-02-05 01:31:28 +03:00
Dmitry Naumenko
d16586334d Fixes #7640: Implemented custom data types support. Added JSON support for MySQL and PostgreSQL, array support for PostgreSQL 2018-02-05 04:59:14 +07:00
wapmorgan
5afe0a0d36 Fixes #15047: yii\db\Query::select() and yii\db\Query::addSelect() now check for duplicate column names 2018-02-04 23:41:33 +03:00
Bizley
8b74e29663 Fixes #14296: Fixed log targets to throw exception in case log can not be properly exported 2018-02-04 01:20:09 +07:00
Alexander Makarov
61b47014a2 Fixes #14643: Added yii\web\ErrorAction::$layout property to conveniently set layout from error action config
Co-authored-by: Stas So <etc@swods.ru>
Co-authored-by: Carsten Brandt <mail@cebe.cc>
2018-02-03 21:18:47 +03:00
Alexander Makarov
b979b2aa88 Fixes #15355: Additional test and fix 2018-02-03 20:10:13 +03:00
Arsen
16e63f6de2 Fixes #13465: Added yii\helpers\FileHelper::findDirectory() method 2018-02-03 23:00:59 +07:00
Alexander Makarov
10eac963d3 Fixed typo [skip ci] 2018-02-03 18:55:27 +03:00
Alexander Makarov
63fdd26b7e Fixes #8527: Added yii\i18n\Locale component having getCurrencySymbol() method
Co-authored-by: Anton Gubarev <a.p.gubarev@gmail.com>
2018-02-03 18:01:54 +03:00