99a612e1a6
Finished AR guide [skip ci]
2015-03-15 01:26:06 -04:00
bd20b30b89
AR guide WIP [skip ci]
2015-03-09 22:43:24 -04:00
2aace3714c
minor adjustments
2015-03-01 01:24:28 +01:00
29f5dc37a5
Correct phpDoc for return in several cases
...
close #6733
2015-02-28 23:49:16 +01:00
5a63ae324e
Fixes #7211 : Query caching should properly deal with the case when query result is false
2015-02-25 23:06:42 -05:00
187322052d
Fixed converting double to PHP type
2015-02-26 02:37:47 +03:00
c0e448bacb
Changed CUBRID type for Double
2015-02-26 02:28:59 +03:00
5870a74672
Added Schema::DOUBLE to represent ANSI SQL Double Precision
2015-02-25 16:01:37 +03:00
2897257ec1
fixed wrong docs about loadDefaultValues() and init()
...
fixes #7373
2015-02-24 20:51:47 +01:00
89d1e55f91
phpdoc fix, close #7404
2015-02-24 13:26:01 +01:00
56dbd4cefa
Fixes #7357 : Refactored yii\db\ColumnSchema by adding typecast() method to decouple phpTypecast() from dbTypecast()
2015-02-20 22:03:39 -05:00
4e6b1fd5c6
Local loop variable added to fix #7271 bug
2015-02-15 17:25:43 -05:00
98759201ac
Fixed bug #7271 . Classes that call '*::populateRecord()' after retrieving data from ddbb call now the method on the class of the model returned by '*::instantiate()'. Tests for mysql, elasticsearch and mongodb attached.
2015-02-15 17:25:43 -05:00
d9117a67b1
Fixes #7227 : Query builder should respect column alias setting when yii\db\Expression is being selected
2015-02-14 10:36:19 -05:00
6481d13494
Optimized checks order in conditions
2015-02-08 17:56:36 +03:00
af7ae33d5b
Use (array) cast instead of !is_array check for both readability and performance
2015-02-08 17:56:14 +03:00
ffe940180c
simplify findByCondition
2015-02-03 16:31:00 -05:00
8c3dce88dd
fixed phpdoc
2015-02-03 00:03:13 +01:00
233388fdd6
Remove non-necessary leading slash in use operator.
2015-02-02 11:55:32 +06:00
84b20d57e4
Fixes #7055 : composite IN condition was not generated correctly for certain DBMS
2015-01-31 22:26:51 -05:00
1e5f159f78
override only mssql and sqlite QueryBuilder; throw an exception for composite in condition with a subquery
2015-01-31 22:20:41 -05:00
f58d096920
fixes #6792 , use a simpler composite in condition implementation on dbs other than pgsql
2015-01-31 22:20:41 -05:00
6cfbd8d548
Fixed ActiveRecordInterface phpDoc
2015-01-27 01:57:45 +03:00
08e54c522c
Fixed ActiveRecordInterface phpDoc
2015-01-27 01:44:35 +03:00
4267b53d43
added doc about count() return value
...
fixes #yiisoft/yii#3712
2015-01-14 18:33:41 +01:00
6f889e12ac
Merge PR #6763 branch 'creocoder-incorrect-checking-sqlite-version'
...
* creocoder-incorrect-checking-sqlite-version:
improved db test, avoid error by accessing db directlry
fixed failure on sqlite version check
Correct SQLite version checking
2015-01-10 22:10:10 +01:00
f177f1701a
fixed failure on sqlite version check
...
ensure PDO instance has been created at this point
2015-01-10 22:06:43 +01:00
f42cd49833
yii\db\ActiveQuery phpDoc fix
2015-01-08 02:05:37 +03:00
ee85dba92e
yii\db\ActiveQuery phpDoc fix
...
close #6779
2015-01-07 22:57:54 +01:00
fff48ef76f
Correct SQLite version checking
2015-01-06 01:27:01 +03:00
d341bf02b4
Fixes #6398 : Added support for specifying dependent component in terms of a configuration array for classes such as DbCache
2015-01-04 19:28:05 -05:00
780fdd611a
Fixes #6710
2014-12-31 10:55:54 -05:00
d5176a463f
better exception message
...
- yii\db\BaseActiveRecord::findByCondition better exception
- yii\db\ActiveRecord::findByCondition better exception
close #6704
2014-12-31 14:53:44 +01:00
b9a6b65e89
Implicit type casting to avoid buggy dblib issues
2014-12-25 23:49:20 +03:00
89406502ad
Fixed typo in phpdoc
2014-12-24 00:59:13 +02:00
5ad6ba5c9e
Fix from e719ff5 moved to yii\sphinx\Query
2014-12-23 18:39:52 +02:00
e719ff5854
yii\db\Query::queryScalar() fixed to use static when creating subquery
2014-12-23 18:17:17 +02:00
4e5b3b043e
Update QueryInterface.php
...
A back quote sign in docblock missed.
2014-12-22 11:14:16 +03:00
2202ae6cb8
Fixes #6080 : Oracle DB schema did not load column types correctly
2014-12-16 23:21:11 -05:00
073982ab0a
Update BaseActiveRecord.php
...
The exceptions thrown on error are db exceptions.
2014-11-30 21:02:43 +01:00
83b0b3d480
Fixes #6311 : Optimistic lock for ActiveRecord does not work as expected
2014-11-29 20:10:53 -05:00
8b79293ff2
added missing @since annotations
2014-11-27 18:11:14 +01:00
7b20bdeeb2
Fixes #6279 : yii\db\Schema::getLastInsertID() was passing wrong default schema name to PDO
2014-11-27 16:51:29 +03:00
25a7c84ef2
Fixes #6271 : Query caching returns the same data when running the same SQL with different fetch modes
2014-11-26 11:10:55 -05:00
cc8ffe364e
added support for yii\db\Expression to querybuilder BETWEEN and LIKE
...
fixes #6164
2014-11-23 01:41:15 +01:00
db56384fcf
improved documentation about loadDefaultValues()
...
issue #6126
2014-11-20 11:50:32 +01:00
9eedfd054e
Fixed test break.
2014-11-16 12:31:02 -05:00
ab1f32ef76
Fixes #4492 : Support PostgreSQL-specific syntax for QueryBuilder::alterColumn()
2014-11-16 10:47:46 -05:00
38d0570843
fixed unlink() for array valued attributes
...
return value would not be a valid array when json encoded after unlink().
fixes #6065
2014-11-15 21:42:36 +01:00
6b52b03523
Fixes #6049 : yii\db\Connection::getSchema() for Oracle should return false when the table does not exist. Oracle does not support ON UPDATE clause.
2014-11-15 08:38:24 -05:00