29 Commits

Author SHA1 Message Date
6d72c6a723 fix code style 2014-03-04 06:27:22 +02:00
a2edf01c85 Delay joinWith till createCommand to correctly combine relation condition with primary condition. 2014-03-01 18:39:22 -05:00
cb8237c1b7 merged ActiveQueryInterface and ActiveRelatioInterface 2014-02-20 16:15:10 +01:00
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
3a930bd675 Finished batch query feature. 2014-02-14 18:13:42 -05:00
1571c72251 Fixes #2409: Added support for fetching data from database in batches 2014-02-14 16:45:46 -05:00
f59598bb8b Added support for building SQLs with sub-queries 2014-02-11 23:23:02 -05:00
16e1aff41b renamed ActiveRecord::create() to populateRecord()
- refactored elasticsearch AR to make type and index available in
  instantiate(), issue #1313

fixes #2281
2014-02-03 14:07:12 +01:00
b119576041 Fixes #2016: removed ability to declare scopes in ActiveRecord leaving it to ActiveQuery. Changed documentation accordingly. 2014-01-17 22:07:02 +04:00
796284cba1 reworked fix for #1993 2014-01-16 11:05:26 +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
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
48d04fbb8c !== array() => !empty() 2013-05-07 19:57:27 +04:00
034d88e5e4 Fixes issue #134 2013-05-06 08:04:35 -04:00
4fdaab3560 updated file header. 2013-03-04 08:03:46 -05:00
abd3d827a2 refactoring. 2013-01-18 10:37:22 -05:00
6dd495b65f Added init and afterFind events to AR.
Implemented scope support.
2013-01-17 20:58:50 -05:00
b51d347465 Added count, average, sum, min, max, scalar methods to ActiveQuery.
Added support for scopes defined in AR classes.
2013-01-17 19:26:20 -05:00
9958a5802e DB cleanup 2013-01-17 12:54:13 -05:00
5d90e6da80 removed scopes.
finished AR documentation.
2013-01-14 20:19:08 -05:00
cc33a930c9 Finished AR API. 2013-01-13 21:17:45 -05:00
3ca50f3043 clean up AR 2013-01-13 10:23:03 -05:00
ef8b092278 initial draft of saving related models. 2013-01-11 23:10:35 -05:00
c9b104f0a1 refactored AR relation. 2013-01-09 16:50:17 -05:00
0e3e2698d7 cleanup of AR 2013-01-09 11:13:49 -05:00
8e05e6e62d changed copyright line. 2013-01-07 11:34:52 -05:00
2188ece107 refactoring DB 2013-01-05 21:20:13 -05:00
8517ee9e50 reorganized DB classes. 2013-01-05 16:46:53 -05:00