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
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
f9bb1e21cb
fixed elasticsearch test break
2014-11-13 15:57:49 +01:00
982a27db83
removed support for unlinkAll() from elasticsearch
...
feature is not reliable
fixes #5136
2014-09-23 12:56:05 +02:00
1b509ccc37
Mark failed tests as skipped.
2014-09-22 20:47:02 -04:00
e4446ccf51
removed old test
2014-09-11 16:28:32 +02:00
d036d2f5bf
add support for array valued attr relations to unlink and link
2014-07-23 01:25:33 +02:00
d5375e8c3b
added elasticsearch test case for array attribute relations
2014-07-20 23:57:51 +02:00
4e8e22da3c
fixed issue with elasticsearch >=1.2.0
...
do not use scripting as it is disabled by default and will cause edge
case queries to fail
fixes #4187
2014-07-04 14:04:38 +02:00
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
2014-06-20 17:40:00 +04:00
59b9065cec
ES: fixed issue with storing empty records
...
fixes #3587
2014-06-04 17:56:42 +02:00
d92281dcda
refactored ActiveRecord::unlinkAll() to work will noSQL
...
issue #3520
2014-06-04 14:28:57 +02:00
ed041f7ade
Added missing imports
2014-06-02 18:52:13 +04:00
0003b10b02
ElasticSearch tests fix
2014-06-02 18:14:02 +04:00
905e39ede9
RBAC migration is now aware of custom table names, speeded up RBAC tests
2014-05-07 00:19:33 +04:00
676b366928
adjusted elasticsearch extension to version 1.0 of ES
...
breaking changes.
2014-05-06 18:14:32 +02:00
75154d351d
Refactored AR find
2014-04-07 09:43:03 +04:00
3ba9dcbedc
Fixed test break.
2014-04-02 20:26:55 -04:00
745c20538c
Merge pull request #2885 branch 'query-filter'
...
* query-filter:
added CHANGELOG lines
added tests for redis
added proper tests for elasticsearch
removed unnecessary code duplication
adjusted tests
typo
renamed Query::filter() to Query::filterWhere()
reverted elasticsearch rename of filter
Adjusted search model code generated by Gii CRUD generator
Added support for arbitrary number of parameters for NOT, AND, OR in filter methods of Query
Gii CRUD generator now uses new addFilter method
Query::filter() adjustments
fixes #2002
Added tests for Query::filter()
Conflicts:
framework/db/QueryTrait.php
2014-04-02 19:33:40 +02:00
e9c364d2f2
added proper tests for elasticsearch
2014-04-02 19:15:21 +02:00
c572c23c2f
adjusted tests
2014-04-02 18:56:49 +02:00
96f1c4c10b
renamed Query::filter() to Query::filterWhere()
2014-04-02 18:48:14 +02:00
f7a6cb9f7a
Refactored AR tests.
2014-03-30 20:46:25 -04:00
ecf019e311
Merge branch 'master'
2014-03-31 02:20:56 +04:00
ab799d8ea9
Fixes #2911 : Removed tbl_ default for table prefix
2014-03-30 19:33:46 +04:00
3c1a8141fd
fixes #2002
2014-03-27 12:41:16 +04:00
19327ebd14
Added tests for Query::filter()
2014-03-26 17:09:16 +04:00
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
32d0768919
style fixes with phpcs:yii2
2014-03-08 14:55:58 +02:00
b2f1b00bf2
code style. operator IF
2014-03-03 21:32:34 +03:00
c7e8d8b900
@param, @var, @property and @return must declare types as boolean, integer, string, array or null
2014-03-03 20:50:44 +03:00
6e7edfdf5b
short array syntax
2014-03-03 20:21:55 +03:00
4a201c7ad5
Removed unused variables
2014-02-07 13:39:35 +04:00
dd26d39dd8
Removed unused namespace imports
2014-02-07 13:26:00 +04:00
e407d0489c
updated elasticsearch querybuilder test to use yiitest index
...
better not delete all to avoid data loss
pr #2324
2014-02-06 19:31:50 +01:00
bad9c0cccc
Merge branch 'master' of github.com:mintao/yii2 into mintao-master
...
Conflicts:
extensions/yii/elasticsearch/CHANGELOG.md
2014-02-06 13:20:48 -05:00
a3724aa4d1
Fixed bug which prevented a field query as described in the example:
...
```
$result = Article::find()->query(["field" => ["title" => "yii"]])->all();
````
2014-02-05 11:49:33 +01:00
0ec5643ce3
Unit tests updated
2014-01-19 13:51:56 +04:00
7e961eee85
fixed test break
2014-01-16 11:50:59 +01:00
81d23332df
afterFind event in AR is now called after relations have been populated
...
fixes #1993
2014-01-16 10:28:58 +01:00
ab47d58c69
path fixes.
2014-01-10 21:58:50 -05:00
31fece562e
fixed test break
2014-01-10 15:39:06 +01:00
5dca1257b2
reverted primaryKey of elasticsearch to be array again
...
meet the AR interface requirements.
2014-01-09 13:44:12 +01:00
a7b852fcc3
Changed elasticsearch AR primary key handling
...
now supports mapped primary key when _id is part of source with an
alias.
2014-01-04 04:26:50 +01:00
702cf513ca
make elasticsearch tests only work on yiitext index
2013-12-18 17:31:32 +01:00
0310935e48
fixed test breaks.
2013-12-10 00:12:17 -05:00
e2b4708bbd
added support for updateCounters to elasticsearch
...
issue #1313
2013-12-09 14:42:28 +01:00
be583a7a22
fixed problem with sorting by id in elasticsearch
...
issue #1317
2013-11-27 23:27:47 +01:00
1c08c06da8
implemented connection based on CUrl
...
far better than depending on fat guzzle
2013-11-25 23:32:54 +01:00
5164a1671c
finalized Query interface + general cleanup
2013-11-25 20:12:45 +01:00