14864 Commits

Author SHA1 Message Date
38be74446e Update PHPDoc, CHANGELOG, UPGRADE.md 2016-05-22 12:54:29 +03:00
7249a6c99e Move Identity Cookie code into separate functions 2016-05-22 12:12:04 +03:00
7284f238a0 Merge branch 'andrey-mokhov-patch-2' 2016-05-22 12:04:52 +03:00
36be16c865 Updated CHANGELOG 2016-05-22 12:03:44 +03:00
77b29bf927 Added tests to ColumnSchemaBuilderTest in order to verify custom column types work OK 2016-05-22 12:03:44 +03:00
bde00be202 ColumnSchemaBuilder can not work with custom types
In our project we use trait with custom types, example:
```php
trait MigrationToolTrait
{
    protected function dateTimeWithTZ ($precision = null)
    {
        if ('pgsql' === $this->db->driverName) {
            return $this->getDb()->getSchema()->createColumnSchemaBuilder(sprintf('timestamp(%d) with time zone', $precision));
        }

        return $this->dateTime($precision);
    }
}
```
usage:
```php
class m160516_161900_init
{
    use MigrationToolTrait;
    public function safeUp ()
    {
        $this->createTable('testing', [
            'id' => $this->primaryKey(),
            'startDate' => $this->dateTimeWithTZ()->notNull()->defaultExpression('now()'),
        ]);
    }
    public function safeDown ()
    {
        $this->dropTable('testing');
    }
}
```
In version 2.0.8 MigrateController generate notice:
PHP Notice 'yii\base\ErrorException' with message 'Undefined index: timestamp(0) with time zone' in vendor/yiisoft/yii2/db/ColumnSchemaBuilder.php:366

We offer our change to fix it.
2016-05-22 12:03:44 +03:00
77747fc50f Merge pull request #11604 from lucianobaraglia/doc-es
Some spanish docs [ci skip]
2016-05-22 01:29:15 +03:00
bb35fda6e9 Update Migration.php (#11605)
Typo in doc for safeDown
2016-05-21 15:32:34 +03:00
3eb70a724b Test fixtures spanish docs [skip ci] 2016-05-20 22:39:09 -03:00
b4ed34558f Some spanish doc translations [skip ci] 2016-05-20 16:27:23 -03:00
e49bc29aa8 Update ActionFilter.php 2016-05-20 13:13:42 +02:00
623b738d47 Merge pull request #11580 from DrDeath72/patch-12
YUI Compressor fix
2016-05-20 13:40:19 +03:00
7e7db38011 Fix #11591 ActionFilter wildcard (#11594)
* Added support for wildcards for `only` and `except` at `yii\base\ActionFilter`
2016-05-20 11:04:17 +02:00
48bcee6fc3 Doc translation es (#11597)
* Added glossary to Spanish translation

* Some spanish translation updates

* DB Migrations Spanish Docs [skip ci]

* Fix line break in english doc [skip ci]
2016-05-19 23:44:45 +03:00
f1c1505808 Added glossary to Spanish translation (#11587)
* Added glossary to Spanish translation

* Some spanish translation updates
2016-05-19 00:03:03 +03:00
fd6f536eaf YUI Compressor fix 2016-05-18 10:35:00 +05:00
0c4a16fc89 Fixes #11572: updated Codeception version in the guide 2016-05-17 12:09:30 +03:00
0ff6eeba7d Enhanced 9f499eb: yii\web\User::checkRedirectAcceptable() removed check for "*" type (invalid in accept header) 2016-05-16 01:11:47 +03:00
b976f638d8 Added test for PgSQL BIGINT column to ensure typecasting works OK
Closes #11286
2016-05-15 23:05:30 +03:00
9f499eb51e Fixed yii\web\User::checkRedirectAcceptable() to treat acceptable content type */* as *
Closes #11523
2016-05-15 22:27:40 +03:00
c3c0d04f5b Merge pull request #11547 from yiisoft/11429-message-source
Fixed `yii\i18n\PhpMessageSource::loadFallbackMessages()`
2016-05-15 21:59:50 +03:00
6bd9881eaf Minor changes in Estonian translation - more fluent. (#11568) [skip ci] 2016-05-15 13:30:14 +03:00
4d809af0ff Fixed @since tag 2016-05-13 17:29:25 +03:00
515732c7b8 Test for bug dbTypecast with empty char #11548 2016-05-13 16:37:20 +03:00
94d0bd9ae7 Fixed method name 2016-05-13 16:05:38 +03:00
27866bf9d6 Changed name to append(), fixed phpdoc, added changelog 2016-05-13 15:58:06 +03:00
66eabda770 Fixes #11195: Added ability to append custom string to schema builder column definition 2016-05-13 15:57:54 +03:00
5210fc8e42 Fixes #11532: Fixed casting of empty char value to null resulting in integrity constraint violation for not null columns 2016-05-13 15:34:35 +03:00
85d19b56e6 Merge pull request #11564 from githubjeka/patch-1
phpDoc of $layout updated
2016-05-13 14:34:55 +03:00
d0a68883c7 phpDoc of $layout updated 2016-05-13 14:18:19 +03:00
449a572be5 translate guide to bahasa (#11563) 2016-05-13 13:36:52 +03:00
bc63b7607f Fixed PHPDoc for BaseArrayHelper::index()
Closes #11556
2016-05-12 16:33:23 +03:00
59daa80592 Merge pull request #11554 from Keanor/patch-1
Update start-workflow.md
2016-05-12 14:16:39 +03:00
e9abf085e1 Update start-workflow.md
исправление опечатки
2016-05-12 13:19:16 +04:00
f7ff153fce Fixed yii\i18n\PhpMessageSource::loadFallbackMessages() not to log error when source and language is same, but locales are different 2016-05-12 01:30:17 +03:00
f6d664b5c8 Merge pull request #11545 from yiijan/docs-ja-0512
docs-ja updated [ci skip]
2016-05-11 15:45:55 +03:00
b5ff914d80 issue #11507 added to CHANGLOG 2016-05-11 15:14:36 +03:00
5f769b1a7b docs/internals-ja updated [ci skip] 2016-05-11 21:14:06 +09:00
7bdd602ad1 docs/guide-ja/security-best-practices.md updated [skip ci] 2016-05-11 21:13:43 +09:00
1ed6fc09f6 #10825 Fixed EachValidator does not respect skipOnEmpty when using model (#11507) 2016-05-11 14:11:32 +02:00
e96f956f8a docs/guide-ja updated [ci skip] (#11537)
* docs/guide-ja translations updated [skip ci]

* docs/guide-ja security-* updated [ci skip]
2016-05-11 01:46:07 +02:00
2eb90f82fe removes nonexistent yii/web/rawCsrfToken from docs (#11521)
* removes nonexistent yii/web/rawCsrfToken from docs

* maj
2016-05-07 18:38:07 +02:00
abb408fc1d pgsql migrations fixed 2016-05-06 12:18:03 +03:00
6b607d078f #11498: Fixed unable to saved serialized object into PostgreSQL binary column (#11499)
#11498: Fixed unable to saved serialized object into PostgreSQL binary column
2016-05-06 11:04:27 +02:00
622676b9f9 Updated translation (#11510) 2016-05-05 15:32:46 +03:00
53e1018648 Updated yii\grid\DataColumn::getHeaderCellLabel() to extract attribute label from the filterModel of Grid
Closes #9950
2016-05-03 15:01:33 +03:00
7cfd454bd1 Merge branch 'PowerGamer1-patch-6' 2016-05-03 14:52:02 +03:00
030913e7f0 Fixed code style and indentations 2016-05-03 14:51:25 +03:00
aaf6c844fb Added DataColumnTest 2016-05-03 14:51:25 +03:00
7f3511a908 Update ArrayDataProvider.php
Update DataColumn.php

Update CHANGELOG.md
2016-05-03 14:51:22 +03:00