579 Commits

Author SHA1 Message Date
292a9ff55b Add support for yii\db\Expression to QueryBuiler simple conditions
fixes #5601
2014-10-17 13:32:54 +02:00
02622b6fe4 phpdoc fixes and additions 2014-10-14 01:35:21 +04:00
a375a62070 bump minimum required cubrid version
there is no reliable way to determine the cubrid PDO extension version used
and also no reliable way to detect which combination of server and client produces wrong behavior.

By requiering 9.3 or higher in both client and server we can be sure it works.

fixes #852
2014-10-12 04:06:13 +02:00
15c8935db1 Fixed yii\mongodb\ActiveRecord unable to fetch 'hasMany' referred by array of \MongoId 2014-10-09 14:55:43 +03:00
cba52e3c5e Fixes #5382: renamed "pivot table" to "junction table" since it's correct term to use 2014-10-07 01:13:17 +04:00
4054b2196f fixed broken links 2014-10-06 22:04:59 +02:00
5acf17e658 Fixed phpdoc for yii\db\Query [skip ci] 2014-10-05 11:24:40 +04:00
0df9a82a7f updated documentation and tests
fixes #5331
2014-10-03 15:25:55 +02:00
d2b864da84 prepare for 2.0.0-rc release. 2014-09-27 21:59:54 -04:00
f76e767edd added docs for #5147 2014-09-24 15:35:04 +02:00
566ed3c594 Fixes #5147: null is not handled correctly for arbitrary operator in SQL. 2014-09-24 08:48:44 -04:00
4772be9cc4 doc typo
fixes #5147
[ci skip]
2014-09-24 14:16:34 +02:00
9df21d46f3 reverted addition of $where property 2014-09-24 13:39:03 +02:00
222f9ddfad added missing documentation about the NOT operator in Query
fixes #5147
2014-09-24 12:53:33 +02:00
613d3071a7 Fixes #5106: Refactored query caching to not load cache component when query caching is not used at all. 2014-09-23 20:59:51 -04:00
aa8c013ebf Fixes #3197: Using ActiveQuery::indexBy() may cause relational AR queries to generate incorrect relational results 2014-09-23 10:29:11 -04:00
aeaf0511d2 Fixes #3725: Fixed the bug that the filtering condition used in relation definition was ignored when calling ActiveRecord::unlinkAll() 2014-09-22 16:36:55 -04:00
b9c97ff2aa Fixes #4938: When yii\db\ActiveQuery is used to build sub-queries, its WHERE clause is not correctly generated 2014-09-12 16:46:12 -04:00
2150fa3239 Fixes #4970: joinWith() called by a relation was ignored by yii\db\ActiveQuery 2014-09-10 15:00:15 -04:00
35b54345b5 Handling $query->joinWith called inside of other $query->joinWith within Closure (called inside Closure). Ex.: ``php $query->joinWith( [ 'rel1' => function($query) { $query->joinWith( [ 'rel2' => function($query) { // ... } ] ); } ] ); `` 2014-09-10 14:49:11 -04:00
44b5e8ef60 Fixes #4954: MSSQL column comments are not retrieved correctly 2014-09-10 13:44:04 -04:00
e15cfc0286 allow precision for binary type in MSSQL
fixes #4931
2014-09-05 15:14:59 +02:00
73cb5f8aac changed syntax for referencing the guide in apidoc
New syntax:

```
[link to guide](guide:file-name.md)
[link to guide](guide:file-name.md#subsection)
```

fixes #4719
2014-09-05 14:59:22 +02:00
212c5ee3ef Fixes #4254: SqlDataProvider does not work with Oracle and SQL Server 2014-09-03 14:42:09 -04:00
78b5c7db66 fixed boolean handling for PostgreSQL
- do not allow boolean values for integer columns
- use native boolean type with boolean values
- removed workaround that turned out to be wrong when schema and values
  are used correctly. Workaround resulted from wrong usage of boolean
  values before.

fixes #4672
2014-08-28 11:20:17 +02:00
7aed617c38 Fixes #4813: Fixed MSSQL schema that was getting incorrect info about constraints 2014-08-26 14:12:24 +04:00
7deb26f6c8 Fix PHPDoc 2014-08-24 23:25:08 +04:00
385e13978d Fixes #4800. 2014-08-23 18:18:31 -04:00
3f597fd45d updated doc [skip ci] 2014-08-22 10:06:42 -04:00
3704b9191e Fixes #4697: MSSQL query builder does not work for newer MSSQL versions when LIMIT is used without ORDER BY 2014-08-13 21:07:30 -04:00
7cf358af03 Fixes #4607: AR model will throw an exception if it does not have a primary key to avoid updating/deleting data massively 2014-08-12 21:54:08 -04:00
f099616967 improved IDE autocompletion for AR::find()
[ci skip]
2014-08-12 23:21:34 +02:00
25bf486b7f save some function calls on AR insert 2014-08-12 18:13:49 +02:00
5fe6c55d6b Fixes #4586: Signed bigint and unsigned int will be converted into integers when they are loaded from DB by AR 2014-08-11 22:09:51 -04:00
c6274acf6c ensure postgres boolean values are handled correctly
also fixed an issue with default value loading of bool columns.

fixes #3489, fixes #4085, fixes #3920
related to #4672
2014-08-12 02:19:53 +02:00
92d65ab78b fix issue with postgreSQL and batch inserting boolean values
fixes #4654
2014-08-12 01:43:49 +02:00
20774165bc Fixes #4644: Added \yii\db\Schema::createColumnSchema() to be able to customize column schema used 2014-08-12 00:01:27 +04:00
2a8ca600c5 Simplified parameter check for buildSimpleCondition() 2014-08-01 21:21:01 +04:00
47ee0b87d4 Removed unnecessary code 2014-08-01 21:18:48 +04:00
b656137541 Added support for arbitrary operators to Query::filterWhere, added support for arbitrary operators to Sphinx extension 2014-08-01 21:11:24 +04:00
c1cf48cf5b Fixes #2315: Any operator now could be used with yii\db\Query::->where() operand format 2014-08-01 11:37:05 +04:00
fa8e576251 Refactored ActiveQuery::one() to be consistent with all() creation 2014-07-31 16:38:23 +03:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
1f31f27787 phpdoc 2014-07-29 22:19:14 +02:00
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
1f0d2ab7d9 Fixed Oracle DB type mapping. (Fixes #4) 2014-07-24 20:51:58 -04:00
67bd4972ba Check availabilty field in BaseActiveRecord::populateRecord
check with Object::canSetProperty()

fixes #4305, close #4211
2014-07-23 13:49:55 +02:00
f5f9364785 fixed test break
how did that manage to pass before...?
2014-07-23 02:50:18 +02:00
7939a3dec5 Merge branch 'master' into array-attribute-relations
* master:
  Update output-data-widgets.md
  Fixes #4370: fileinfo extension is required for FileValidator.
  Fixes #4342
  Fixes #3887
  minor refactoring of FileValidator.
  Doc translate for rest-resources
  Better fix for Dropdown container options
  #4388: CORS filter fixes:
  Fixed test break.
  #4310: Removed `$data` from signature of `yii\rbac\ManagerInterface`
  Update .travis.yml
  Update ActiveRecordInterface.php
  Fixes #4384.
  Sphinx distributed indexes support provided
  typo fix [skip ci]
  Fixes #3611: Refactored query caching.
2014-07-23 01:43:03 +02:00
d036d2f5bf add support for array valued attr relations to unlink and link 2014-07-23 01:25:33 +02:00