Commit Graph

38 Commits

Author SHA1 Message Date
Carsten Brandt
0208f289c3 fixed test breaks 2014-06-04 19:12:18 +02:00
Carsten Brandt
d92281dcda refactored ActiveRecord::unlinkAll() to work will noSQL
issue #3520
2014-06-04 14:28:57 +02:00
Alexander Makarov
d34e3c326f Fixed typo in test 2014-06-02 20:14:48 +04:00
Alexander Makarov
a5c4a0ebb4 Adjusted BaseActiveRecord code for better noSQL compatibility 2014-06-02 20:13:48 +04:00
Alexander Makarov
0003b10b02 ElasticSearch tests fix 2014-06-02 18:14:02 +04:00
NmDimas
95d2b29bff Change unit test to Unlink and add test to unlinkAll 2014-06-01 22:40:05 +03: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
f7a6cb9f7a Refactored AR tests. 2014-03-30 20:46:25 -04:00
Carsten Brandt
46d9518c52 fixed test break, fixes #2892 2014-03-27 13:34:03 +01:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
AlexGx
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02:00
Qiang Xue
9b8ffdfacc Fixes #2653: Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue) 2014-03-06 20:38:55 -05:00
Qiang Xue
6659919ad7 Fixed test break. 2014-02-27 11:29:32 -05:00
Carsten Brandt
505762d49c updated docs about active relation 2014-02-21 18:53:28 +01:00
Alexander Makarov
4a201c7ad5 Removed unused variables 2014-02-07 13:39:35 +04:00
Alexander Kochetov
0ec5643ce3 Unit tests updated 2014-01-19 13:51:56 +04:00
Carsten Brandt
81d23332df afterFind event in AR is now called after relations have been populated
fixes #1993
2014-01-16 10:28:58 +01:00
Carsten Brandt
f6530314e2 Merge pull request #1765 from yiisoft/elasticsearch-pk-refactoring
[WIP] Changed elasticsearch AR primary key handling
2014-01-10 15:56:22 -08:00
Carsten Brandt
31fece562e fixed test break 2014-01-10 15:39:06 +01:00
Qiang Xue
dc01411bea Fixes #1791 2014-01-07 11:23:35 -05: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
Qiang Xue
7654fff26d Added unit test for ActiveRecord::updateAttributes(). 2013-12-26 12:39:38 -05:00
Qiang Xue
42d8748e6e Fixes #1579: throw exception when the given AR relation name does not match in a case sensitive manner.
Renamed `ActiveRecord::getPopulatedRelations()` to `getRelatedRecords()`
2013-12-21 23:26:35 -05:00
Carsten Brandt
b4612637ec make count behave like in SQL
also fixed count behavior according to limit and offset.
fixes #1458
2013-12-18 17:22:56 +01:00
Carsten Brandt
e2b4708bbd added support for updateCounters to elasticsearch
issue #1313
2013-12-09 14:42:28 +01:00
Qiang Xue
b868e91fee Fixed test break. 2013-12-03 23:52:21 -05:00
Qiang Xue
b0568612bf Fixes #1402: AR eager loading has problem when asArray() is used together with viaTable(). 2013-12-03 20:58:20 -05:00
Carsten Brandt
be583a7a22 fixed problem with sorting by id in elasticsearch
issue #1317
2013-11-27 23:27:47 +01:00
Panagiotis Moustafellos
58bd2fb958 Only whitespace removal 2013-11-27 20:19:56 +02:00
Carsten Brandt
5164a1671c finalized Query interface + general cleanup 2013-11-25 20:12:45 +01:00
Carsten Brandt
025d36cbec even more on random test failure 2013-11-25 16:05:49 +01:00
Carsten Brandt
d56e020109 more random test fixes 2013-11-25 14:07:30 +01:00
Carsten Brandt
c1febb74ff reduce randomness in test results 2013-11-25 13:29:54 +01:00
Carsten Brandt
325fc28182 several fixes and cleanup 2013-11-24 22:46:13 +01:00
Carsten Brandt
47705f0bc9 corrected assertations for test on #1310 2013-11-24 20:58:28 +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