1265 Commits

Author SHA1 Message Date
a56c598743 Portability fixes for SchemaBuilder on MSSQL
Changed timestamp mapping to datetime on MSSQL.
Timestamp is a unique number on MSSQL, not a timestamp.

> https://msdn.microsoft.com/en-us/library/ms182776(v=SQL.90).aspx
> The timestamp data type is just an incrementing number and does not
> preserve a date or a time. To record a date or time, use a datetime data type.

separated from #9191
close #9305
2016-11-27 01:11:30 +01:00
3a6fbad561 phpDoc: Fix example for ActiveRelationTrait::via() (#13008) [skip ci] 2016-11-15 13:30:04 +03:00
7a3a342127 Fix errors reported by apidoc extension. (#12986) 2016-11-13 14:51:21 +01:00
6a4ea892c3 Added type mapping for varbinary data type in MySQL DBMS
Closes #11756
2016-11-12 17:34:20 +02:00
d28009843e #12950: Mentioned AttributeTypecastBehavior in AR afterSave() docs 2016-11-10 03:12:47 +03:00
7c7d751e67 Fixes #12015 Changed visibility yii\db\ActiveQueryTrait::createModels() from private to protected 2016-11-08 23:49:42 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
3d9945958d Removed accidentally committed leftovers 2016-11-02 14:13:49 +03:00
dd71fa3958 Fixes #4113: Error page stacktrace was generating links to private methods which are not part of the API docs 2016-11-02 13:42:11 +03:00
71d083d499 Fixes #12816: Added columnSchemaClass option for yii\db\Schema which adds ability to specify custom \yii\db\ColumnSchema class 2016-10-24 14:36:42 +03:00
1433d8a017 added example for relation name to AR phpdoc
fixes #12802
2016-10-24 02:16:54 +02:00
3c1eb55f55 PHPDoc @return fix for insert() (#12757) [skip ci] 2016-10-17 16:36:25 +03:00
677b55475b Reverted accidental commit 2016-10-12 00:38:54 +03:00
2ffa670885 add functions for filtering 2016-10-12 00:07:45 +03:00
6100849e2f Documentation ActiveQueryInterface::one() (#12682)
* Documentation ActiveQueryInterface::one()

Currently there is an issue when using `BaseActiveRecord::findOne()` because it uses the return type for `ActiveQueryInterface::one()` which is inherited from `QueryInterface::one()` which returns `array|false`

https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/BaseActiveRecord.php?selectedAuthors%5B0%5D=angeldelcaos%40gmail.com&orderField=path&order=asc&honorSelectedPaths=0

* null -> `null`
2016-10-11 15:00:45 +02:00
e7195da4b3 Fix yii\db\Query::having phpdoc [skip ci] 2016-10-04 21:24:52 +02:00
e6eed9a7c9 yii\db\mssql\QueryBuilder - TYPE_TEXT mapped to NVARCHAR(MAX) 2016-10-04 16:42:05 +03:00
7137d676fb Merge pull request #12663 from githubjeka/issue-11835
MSSQL: Fix to NTEXT is being deprecated
2016-10-04 13:23:10 +03:00
4d43ec3867 NTEXT is being deprecated in MSSQL 2016-10-04 10:23:04 +03:00
95152f3c2c Fixed consistency of indexBy handling for yii\db\Query::column()
Closes #12649
2016-10-03 11:17:32 +03:00
fb210b8839 Fixed typo in data type. Fixes #12599 2016-09-26 14:06:08 +03:00
3861108553 Fixed casting of binnary() type for MSSQL. Closes #12599 2016-09-26 13:41:27 +03:00
f696a28c79 display the table when dropping index
display the table, helping when dropping multiple indices with the same name
2016-09-16 19:56:08 +02:00
487b2cb439 make db\Connection phpdoc more clear
fixes #12429
2016-09-05 12:36:07 +02:00
f006db9b2b update docs of AR::update()
fixes #12461
2016-09-05 11:57:08 +02:00
ea03f56d42 BaseActiveRecord methods canGetProperty() and canSetProperty() improved to handle attribute list fetching failure. 2016-09-05 12:22:09 +03:00
b764a7a21e Disable slaves when execute migrations to resolve master-slave replication no-sync (#12460)
Resolve #12446
2016-09-05 10:57:29 +03:00
af189518a3 removed incorrect docblocks 2016-09-03 14:02:40 +03:00
b3081e53a5 Fixed bug in yii\db\mysql\QueryBuilder (#12428)
Bug in yii\db\mysql\QueryBuilder class on insert empty columns
2016-09-01 17:47:46 +03:00
ecfaa9875d Fix phpdoc for constants in db\Schema [skip ci] (#12418) 2016-08-31 23:16:22 +03:00
75439d367d Fixed canGetProperty() and canSetProperty() returns false for yii\db\BaseActiveRecord attributes 2016-08-30 17:39:23 +03:00
4f7b1b0817 Fixed yii\db\BaseActiveRecord::refresh() may set incorrect oldAttributes values at some cases 2016-08-30 14:42:46 +03:00
1e1723a741 Updated PHPDoc in BaseActiveRecord
Closes #12349
2016-08-26 22:11:35 +03:00
0f568807e5 Updated PHPDoc in ActiveRecordInterface 2016-08-26 22:11:09 +03:00
cac514e8e9 Fixes #12293: Fixed MSSQL Schema::resolveTableNames() when using linked database tables 2016-08-25 23:08:37 +03:00
926a238595 Removed duplicate sentence in docblock (#12290) [skip ci] 2016-08-24 13:31:53 +03:00
f0e999e017 Cosmetic changes (#12292) [skip ci] 2016-08-24 13:10:03 +03:00
434a4ce632 Typos in class docblock (#12270) 2016-08-23 22:23:30 +02:00
d33227ab85 typo fix (#12217) [skip ci] 2016-08-21 12:58:11 +03:00
143f9070af Fixed yii\db\BaseActiveRecord::updateAttributes() change isNewRecord state for the new model 2016-08-12 11:43:31 +03:00
ef0658726f Revert "Revert "fixed mysql defaul integer display width on unsigned pk""
This reverts commit 144d78ebb46874cd229f5c13ac3ca7ce3d59f1f2.

fixes #11541
2016-08-08 13:36:08 +02:00
144d78ebb4 Revert "fixed mysql defaul integer display width on unsigned pk"
This reverts commit 85d89e489311e20c626bcb90129c0c86978fcee4 because it
is a breaking change. see #11541
2016-08-08 11:54:29 +02:00
85d89e4893 fixed mysql defaul integer display width on unsigned pk
fixes #11541
2016-08-08 10:47:34 +02:00
876ef142c1 Remove explicit property initialization with null 2016-07-30 00:18:05 +03:00
9b1b4fc5fa Added missing phpdoc 2016-07-30 00:02:51 +03:00
c7d5e69cda Eliminated unused variables 2016-07-29 23:06:38 +03:00
ef4885f478 Removed unnecessary semicolon 2016-07-29 22:57:47 +03:00
0061692e60 Replaced unnecessary double quotes with single quotes 2016-07-29 22:56:38 +03:00
6263eeba69 Updated PHPDoc 2016-07-25 23:33:42 +03:00