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
Qiang Xue
d3ff343e5e
try to fix test break.
11 years ago
Carsten Brandt
c21e01930e
added unit test for #2568
11 years ago
Carsten Brandt
683a46d9ee
test for deeply nested relation
...
close #2543
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
Qiang Xue
c92a260a3d
Fixes #2415 : Added support for inverse relations
11 years ago
Alexander Makarov
dd26d39dd8
Removed unused namespace imports
11 years ago
Klimov Paul
504fc76f5c
Unit test for yii\mongodb\file\ActiveRecord fixed
11 years ago
Luciano Baraglia
7d33a5d3b5
Some Code style fixes
11 years ago
Alexander Kochetov
0ec5643ce3
Unit tests updated
11 years ago
Alexander Makarov
87d42e9f37
Fixed wrong namespace
11 years ago
Alexander Makarov
af385858c7
Fixed tests for elasticsearch, mongo, redis
11 years ago
Alexander Makarov
ed97632f53
Fixed scope method signatures
11 years ago
Alexander Makarov
0699eaadd5
Fixed test breaks
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
Qiang Xue
c4c328dc92
Fixes #1791 : support ON condition for relational query.
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
Qiang Xue
4f44bb2416
Fixes #1581 : Added `ActiveQuery::joinWith()` to support joining with relations
11 years ago
Paul Klimov
9b5f3fab99
Extension "mongo" renamed into "mongodb"
11 years ago
Klimov Paul
ca608a81a4
Mongo file Active Record updated.
11 years ago
Paul Klimov
750c6275c0
Sphinx test AR classes moved to 'data/ar/sphinx'.
11 years ago
Klimov Paul
1129d820ed
Mongo Active Relation unit test fixed.
11 years ago
Paul Klimov
3fd6d95aff
Unit test for Mongo Active Relation added.
11 years ago
Paul Klimov
9c7d2b23c2
Mongo Active Record and Active Query fixed.
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
cb4504a10f
refactored Model and redis AR to allow drop of RecordSchema
11 years ago
Carsten Brandt
8542448f20
refactored redis AR to relect the latest changes
...
- make use of traits
- short array
- better implementation of query findByPk
11 years ago
Carsten Brandt
34945b0b69
added unit test to verify storing of null values
...
http://www.yiiframework.com/forum/index.php/topic/48359-inserting-nulls/page__view__findpost__p__226019
11 years ago
Carsten Brandt
c62e0cbbfb
added unit test to verify AR afterSave isNewRecord value
...
closes #1084
11 years ago
Alexander Makarov
ee2af2661c
Removed unneeded use statements
11 years ago
Qiang Xue
fb8e818204
Dropped support for supporting default namespace for classes of related models.
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Carsten Brandt
f974e1a59f
fixed validator test break
11 years ago
Carsten Brandt
d442f05631
elasticsearch find by simple condition
11 years ago