Carsten Brandt
cc38e9c795
fixed issue with indexBy and array valued relations
10 years ago
Carsten Brandt
d5375e8c3b
added elasticsearch test case for array attribute relations
10 years ago
Carsten Brandt
0899b8d474
changed updateAttributes to be more simple update
...
fixes #3233
10 years ago
Carsten Brandt
d92281dcda
refactored ActiveRecord::unlinkAll() to work will noSQL
...
issue #3520
10 years ago
Alexander Makarov
2a75cd19c0
Added missing relations to Redis/Elasticsearch test models
10 years ago
Alexander Makarov
d0aadffb91
Added missing test models for elasticsearch
10 years ago
Carsten Brandt
676b366928
adjusted elasticsearch extension to version 1.0 of ES
...
breaking changes.
11 years ago
Alexander Makarov
75154d351d
Refactored AR find
11 years ago
Qiang Xue
8b4dfcc876
Fixes #2955 : Changed the signature of ActiveQuery constructors and `ActiveRecord::createQuery()` to simplify customizing ActiveQuery classes
11 years ago
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed `tbl_` default for table prefix
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
AlexGx
183819abfd
fix phpDoc method signature
11 years ago
AlexGx
32d0768919
style fixes with phpcs:yii2
11 years ago
Alexander Makarov
71835d977e
More short syntax for arrays
11 years ago
Alexander Mohorev
6e7edfdf5b
short array syntax
11 years ago
Carsten Brandt
3b40d44909
made createQuery() config param optional
11 years ago
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
11 years ago
Luciano Baraglia
7d33a5d3b5
Some Code style fixes
11 years ago
Alexander Kochetov
0ec5643ce3
Unit tests updated
11 years ago
Alexander Makarov
af385858c7
Fixed tests for elasticsearch, mongo, redis
11 years ago
Carsten Brandt
7e961eee85
fixed test break
11 years ago
Carsten Brandt
81d23332df
afterFind event in AR is now called after relations have been populated
...
fixes #1993
11 years ago
Carsten Brandt
5dca1257b2
reverted primaryKey of elasticsearch to be array again
...
meet the AR interface requirements.
11 years ago
Carsten Brandt
a7b852fcc3
Changed elasticsearch AR primary key handling
...
now supports mapped primary key when _id is part of source with an
alias.
11 years ago
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
11 years ago
Carsten Brandt
613758dda5
refactored elasticsearch COnnection and Command
11 years ago
Carsten Brandt
b081cf5e46
moved elasticsearch to extensions
11 years ago
Carsten Brandt
325fc28182
several fixes and cleanup
11 years ago
Carsten Brandt
af5d87ac4d
renamed elasticsearch PK to id
11 years ago
Carsten Brandt
643593737d
added test case for #1310
11 years ago
Carsten Brandt
f017ba357f
refactored unit tests. put common AR tests in trait
11 years ago
Carsten Brandt
983b2286ba
elasticsearch AR relations + null values
11 years ago
Carsten Brandt
779d6b6e96
fixed count and asArray()
11 years ago
Carsten Brandt
39ff11a374
first draft of elasticsearch AR
11 years ago
Carsten Brandt
d442f05631
elasticsearch find by simple condition
11 years ago
Carsten Brandt
a94886fafd
elasticsearch AR WIP copied parts from redis implementation
11 years ago