Commit Graph

683 Commits

Author SHA1 Message Date
Zhandos Nuftiev
202e3ae0ca Fixed typo in FilterValidator for skipping array values. 2014-03-16 18:27:19 +05:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Qiang Xue
08f6003c1d Fixed test break. 2014-03-14 23:55:38 -04:00
Qiang Xue
e5031dfd5f test break fix. 2014-03-14 23:17:04 -04:00
Qiang Xue
9ff8b0f903 Fixes #2571: Fixed the bug that batchInsert will fail for SQLite if the values contain null or boolean false;
Fixes #2683: Fixed the bug that batchInsert will fail for MySQL if the values contain boolean false.
2014-03-14 22:48:20 -04:00
Carsten Brandt
f944278a74 Update ActiveFormTest.php 2014-03-13 02:53:01 +01:00
Carsten Brandt
5d309c2075 added unit tests for boolean attributes
fixes #1022
2014-03-13 02:50:09 +01:00
Alexander Pletnev
b9c0871218 tabs vs spaces 2014-03-11 23:16:04 +04:00
Alexander Makarov
c694d32e13 Merge branch 'fix_is_empty_file_validator' of github.com:ZhandosKz/yii2 into ZhandosKz-fix_is_empty_file_validator
Conflicts:
	framework/CHANGELOG.md
2014-03-11 17:24:43 +04:00
Qiang Xue
bcf5b4644e Fixes #2687: ActiveQuery::joinWith() has problem when the query is used twice. 2014-03-10 21:44:48 -04:00
Zhandos
385ee5550a Update FileValidatorTest.php
fix tabs
2014-03-10 23:19:00 +05:00
Zhandos Nuftiev
b3b9bd353e fix isEmpty method for file validator. 2014-03-10 23:10:47 +05:00
Alexander Makarov
2ceab799e2 Removed unneeded config from tests 2014-03-11 02:12:53 +04:00
Alexander Makarov
842e7eb573 Added tests, final Url helper adjustments 2014-03-11 02:12:13 +04:00
Carsten Brandt
4384a96812 Merge pull request #2667 from AlexGx/tests-codestyle-fix
Tests codestyle fix
2014-03-09 03:06:39 +01:00
Luciano Baraglia
269d1303a9 Code style fixes 2014-03-08 20:47:04 -03:00
AlexGx
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02:00
Qiang Xue
203bc5ea05 Fixed test break. 2014-03-07 19:58:30 -05:00
Qiang Xue
fad635440b Fixes #2655: Arrayable and ArrayableTrait are incompatible for some PHP versions. 2014-03-07 19:08:27 -05:00
Carsten Brandt
1b7e1cd027 Merge pull request #2605 branch 'feature' of https://github.com/mongosoft/yii2 into code-style
* 'feature' of https://github.com/mongosoft/yii2:
  returned back formatting language files
  code style. WHILE
  code style. FOR
  code style. FOREACH
  code style. operator IF
  @param, @var, @property and @return must declare types as boolean, integer, string, array or null
  short echo tags
  short array syntax

Conflicts:
	extensions/apidoc/commands/RenderController.php
	extensions/apidoc/models/BaseDoc.php
	extensions/apidoc/models/Context.php
	extensions/apidoc/templates/bootstrap/Renderer.php
	extensions/apidoc/templates/bootstrap/layouts/guide.php
	extensions/apidoc/templates/bootstrap/layouts/main.php
	extensions/apidoc/templates/bootstrap/views/index.php
	extensions/apidoc/templates/html/Renderer.php
	extensions/apidoc/templates/offline/views/index.php
	extensions/apidoc/templates/offline/views/offline.php
	extensions/apidoc/templates/online/views/index.php
	extensions/elasticsearch/Connection.php
	extensions/redis/ActiveQuery.php
	framework/base/ErrorException.php
	framework/helpers/BaseFileHelper.php
	tests/unit/framework/helpers/FileHelperTest.php
2014-03-07 21:54:44 +01:00
Qiang Xue
65bfd1633b Fixes #2646: Added support for specifying hostinfo in the pattern of a URL rule 2014-03-07 09:53:55 -05:00
Qiang Xue
9b8ffdfacc Fixes #2653: Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue) 2014-03-06 20:38:55 -05:00
Alexander Makarov
71835d977e More short syntax for arrays 2014-03-07 02:03:23 +04:00
Qiang Xue
e38c4225b2 Merge commit 'bdce87b242abbff800020deba0a5c2031fc2efe7' into feature-restapi
Conflicts:
	framework/db/BaseActiveRecord.php
2014-03-06 00:00:33 -05:00
Carsten Brandt
ecc066ac34 fixed condition for HHVM test 2014-03-05 02:35:37 +01:00
Alexander Makarov
fc4098b89a Code style 2014-03-04 00:56:27 +04:00
Alexander Mohorev
95ea1c20bb code style. FOREACH 2014-03-03 21:47:47 +03:00
Alexander Mohorev
c7e8d8b900 @param, @var, @property and @return must declare types as boolean, integer, string, array or null 2014-03-03 20:50:44 +03:00
Alexander Mohorev
6e7edfdf5b short array syntax 2014-03-03 20:21:55 +03:00
Qiang Xue
f22d409e8b test break fix. 2014-03-02 00:34:33 -05:00
Qiang Xue
b9743ef65b fixed test break. 2014-03-01 19:35:00 -05:00
Qiang Xue
a2edf01c85 Delay joinWith till createCommand to correctly combine relation condition with primary condition. 2014-03-01 18:39:22 -05:00
Qiang Xue
24e086deaf Added yii\web\UrlRuleInterface and yii\web\CompositeUrlRule 2014-02-28 14:40:25 -05:00
Qiang Xue
6659919ad7 Fixed test break. 2014-02-27 11:29:32 -05:00
Carsten Brandt
c21e01930e added unit test for #2568 2014-02-27 15:13:51 +01:00
Qiang Xue
ad06b80e6e Enhanced parsing the accept header. 2014-02-26 23:11:59 -05:00
Carsten Brandt
683a46d9ee test for deeply nested relation
close #2543
2014-02-25 15:03:54 +01:00
Qiang Xue
04bf51b01a Fixes #2392: Added addCssStyle(), removeCssStyle(), cssStyleFromArray() and cssStyleToArray() to Html 2014-02-23 19:12:33 -05:00
Qiang Xue
9f37e133e3 Fixed test break. 2014-02-23 14:02:39 -05:00
Carsten Brandt
c229ba729a fixed a bug in MessageSource and missingtranslation event
fixes #2519: MessageSource removed translation messages when event handler
was bound to `missingTranslation`-event
2014-02-23 14:26:47 +01:00
Alexander Makarov
d8d44b6127 Merge pull request #2501 from yiisoft/unify-urls
Fixes #2426: Changed URL creation method signatures to be consistent
2014-02-21 23:53:15 +03:00
Carsten Brandt
5ee50a8454 Merge pull request #2497 from yiisoft/merge-query-and-relation2
WIP merge ActiveRelation into ActiveQuery
2014-02-21 19:00:45 +01:00
Carsten Brandt
505762d49c updated docs about active relation 2014-02-21 18:53:28 +01:00
Alexander Makarov
43c17d99cc Fixes #2426: Changed URL creation method signatures to be consistent 2014-02-20 20:10:33 +04:00
Qiang Xue
ddb7141ea6 doc update about behavior. 2014-02-20 08:21:37 -05:00
Qiang Xue
02d5b20bda Fixes #2360: Added AttributeBehavior and BlameableBehavior, and renamed AutoTimestamp to TimestampBehavior 2014-02-19 21:47:25 -05:00
Qiang Xue
c92a260a3d Fixes #2415: Added support for inverse relations 2014-02-18 19:43:05 -05:00
Qiang Xue
26cb7b2a3c Renamed fooVar to fooParam for various classes. 2014-02-15 18:18:27 -05:00
Qiang Xue
c0bac44f10 Fixes #1186: Changed Sort to use comma to separate multiple sort fields and use negative sign to indicate descending sort 2014-02-15 17:54:33 -05:00
Qiang Xue
9a068f50f4 Refactored batch query. 2014-02-15 11:22:48 -05:00