Commit Graph

31 Commits

Author SHA1 Message Date
Carsten Brandt
d92281dcda refactored ActiveRecord::unlinkAll() to work will noSQL
issue #3520
2014-06-04 14:28:57 +02:00
Alexander Makarov
2a75cd19c0 Added missing relations to Redis/Elasticsearch test models 2014-06-03 14:24:11 +04:00
Alexander Makarov
d0aadffb91 Added missing test models for elasticsearch 2014-06-02 18:33:12 +04:00
Carsten Brandt
676b366928 adjusted elasticsearch extension to version 1.0 of ES
breaking changes.
2014-05-06 18:14:32 +02:00
Alexander Makarov
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
Qiang Xue
8b4dfcc876 Fixes #2955: Changed the signature of ActiveQuery constructors and ActiveRecord::createQuery() to simplify customizing ActiveQuery classes 2014-04-03 10:36:52 -04:00
Alexander Makarov
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
AlexGx
183819abfd fix phpDoc method signature 2014-03-08 15:37:06 +02:00
AlexGx
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02:00
Alexander Makarov
71835d977e More short syntax for arrays 2014-03-07 02:03:23 +04:00
Carsten Brandt
3b40d44909 made createQuery() config param optional 2014-02-20 05:54:47 +01:00
Carsten Brandt
1708a36d95 WIP merge ActiveRelation into ActiveQuery
allow extending only one class to add scopes, fixes #2146

TODO:

- [ ] adjust guide docs
- [ ] adjust README files of extensions
- [ ] finish work and fix test breaks
2014-02-20 05:53:36 +01:00
Alexander Makarov
76705b4319 Merge branch 'master'
Conflicts:
	tests/unit/data/ar/elasticsearch/Customer.php
2014-01-22 03:06:21 +04:00
Luciano Baraglia
7d33a5d3b5 Some Code style fixes 2014-01-19 13:35:36 -03:00
Alexander Kochetov
0ec5643ce3 Unit tests updated 2014-01-19 13:51:56 +04:00
Alexander Makarov
af385858c7 Fixed tests for elasticsearch, mongo, redis 2014-01-17 23:24:31 +04:00
Carsten Brandt
5dca1257b2 reverted primaryKey of elasticsearch to be array again
meet the AR interface requirements.
2014-01-09 13:44:12 +01:00
Carsten Brandt
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
Carsten Brandt
83527e85ca made Model::attributes() non static again
- allows to have dynamic definition of attributes depended on the
  instance
- there was no real need for it to be static. Places that used it static
  have been refactored.

fixes #1318
2013-11-28 01:01:48 +01:00
Carsten Brandt
613758dda5 refactored elasticsearch COnnection and Command 2013-11-25 13:09:38 +01:00
Carsten Brandt
b081cf5e46 moved elasticsearch to extensions 2013-11-25 03:23:12 +01:00
Carsten Brandt
325fc28182 several fixes and cleanup 2013-11-24 22:46:13 +01:00
Carsten Brandt
af5d87ac4d renamed elasticsearch PK to id 2013-11-24 20:49:12 +01:00
Carsten Brandt
643593737d added test case for #1310 2013-11-24 20:45:50 +01:00
Carsten Brandt
f017ba357f refactored unit tests. put common AR tests in trait 2013-11-24 19:18:16 +01:00
Carsten Brandt
983b2286ba elasticsearch AR relations + null values 2013-11-24 04:07:25 +01:00
Carsten Brandt
779d6b6e96 fixed count and asArray() 2013-11-23 07:40:40 +01:00
Carsten Brandt
39ff11a374 first draft of elasticsearch AR 2013-11-23 06:30:36 +01:00
Carsten Brandt
d442f05631 elasticsearch find by simple condition 2013-10-07 17:57:39 +02:00
Carsten Brandt
a94886fafd elasticsearch AR WIP copied parts from redis implementation 2013-09-30 15:12:20 +02:00