Commit Graph

53 Commits

Author SHA1 Message Date
Qiang Xue
ba2c35b894 Fixes #2482. 2014-02-23 18:09:25 -05:00
Carsten Brandt
26717e3e76 allow referencing the guide from API docs 2014-02-22 13:43:57 +01:00
Carsten Brandt
505762d49c updated docs about active relation 2014-02-21 18:53:28 +01: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
Qiang Xue
bea9e3fc06 Fixes #1645: Added support for nested DB transactions 2014-02-15 22:16:09 -05:00
Carsten Brandt
4a9f47bedd refactored sphinx and db AR to call parent implementation of populateRecord() 2014-02-03 14:12:03 +01:00
Carsten Brandt
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
Qiang Xue
8001d2348c refactored ActiveRecord::create(). 2014-02-02 15:00:54 -05:00
Vladimir Zbrailov
a97f6387f9 added check column 2014-02-02 22:36:56 +04:00
Vladimir Zbrailov
0e0acb2731 added inherit doc block and task number 2014-02-02 20:22:56 +04:00
Vladimir Zbrailov
d017567273 override create 2014-02-01 22:31:13 +04:00
Carsten Brandt
262189533a huge amount of documentation link fixes 2014-01-28 17:54:40 +01:00
Qiang Xue
f6dd6fa2e9 Renamed ActiveRecordInterface::createActiveRelation() to createRelation() 2014-01-24 14:46:53 -05:00
Qiang Xue
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00
Qiang Xue
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
Carsten Brandt
776162b05e created StringHelper::basename()
In contrast to php function basename() It that always uses \ and /
as directory separator.
It is needed for use on Classnames that contain namespaces.
Fixes #192
2013-05-09 13:16:40 +02:00
Anderson Müller
45e987d26c Typo in isNewRecord property of ActiveRecord 2013-05-08 20:09:34 +03:00
Qiang Xue
901dabc301 Merge pull request #162 from creocoder/active-record-get-relation
ActiveRecord::getRelation() bugfix
2013-05-07 07:51:49 -07:00
Alexander Kochetov
e3f6faf575 && => || fix 2013-05-07 18:40:31 +04:00
Alexander Kochetov
37f3a400cd ActiveRecord::getRelation() bugfix 2013-05-07 18:36:38 +04:00
Alexander Kochetov
f12518f45c ActiveRecord::insert() and ActiveRecord::update() refactoring 2013-05-07 18:10:50 +04:00
Qiang Xue
f3c17594c6 Fixes issue #155. 2013-05-07 07:18:39 -04:00
Qiang Xue
2026d3824b allow using existing column to store lock version. 2013-04-01 08:32:52 -04:00
Qiang Xue
c6a1327897 renamed lockVersion to optimisticLock 2013-03-31 22:09:13 -04:00
Qiang Xue
7de94d7fe9 Implemented optimistic locking for AR. 2013-03-31 22:03:51 -04:00
Qiang Xue
906e402ba8 ActiveRecord::update() and ActiveRecord::delete() now returns the number rows affected. 2013-03-31 21:20:42 -04:00
Qiang Xue
1fbf81be57 User WIP. 2013-03-28 17:43:27 -04:00
Qiang Xue
884977a724 renamed util to helpers. 2013-03-23 15:32:26 -04:00
Qiang Xue
5f774db6d1 sort WIP 2013-03-05 16:34:02 -05:00
Qiang Xue
4fdaab3560 updated file header. 2013-03-04 08:03:46 -05:00
Qiang Xue
f68bed0ccb fixed exception. 2013-03-03 10:19:22 -05:00
Qiang Xue
8b2b7915b4 Renamed application to app. 2013-02-05 16:12:22 -05:00
Carsten Brandt
da0ef127b5 proof reading docs, fixed event order in AR 2013-02-01 18:06:21 +01:00
Qiang Xue
76b153a368 fixed event doc. 2013-01-20 13:37:16 -05:00
Qiang Xue
373e6a705e refactored event declaration convention. 2013-01-18 22:01:08 -05:00
Qiang Xue
abd3d827a2 refactoring. 2013-01-18 10:37:22 -05:00
Qiang Xue
6dd495b65f Added init and afterFind events to AR.
Implemented scope support.
2013-01-17 20:58:50 -05:00
Qiang Xue
ed8b795295 renamed exception classes. 2013-01-17 19:55:10 -05:00
Qiang Xue
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
Qiang Xue
9b62fb6786 DB cleanup. 2013-01-17 08:46:08 -05:00
Qiang Xue
5d90e6da80 removed scopes.
finished AR documentation.
2013-01-14 20:19:08 -05:00
Qiang Xue
cc33a930c9 Finished AR API. 2013-01-13 21:17:45 -05:00
Qiang Xue
3ca50f3043 clean up AR 2013-01-13 10:23:03 -05:00
Qiang Xue
46ab456f4e finished new AR. 2013-01-12 23:16:26 -05:00
Qiang Xue
cf6c73c63e link relation WIP 2013-01-12 13:09:58 -05:00
Qiang Xue
ef8b092278 initial draft of saving related models. 2013-01-11 23:10:35 -05:00
Qiang Xue
6243861138 AR WIP 2013-01-10 12:41:16 -05:00
Qiang Xue
c9b104f0a1 refactored AR relation. 2013-01-09 16:50:17 -05:00
Qiang Xue
0e3e2698d7 cleanup of AR 2013-01-09 11:13:49 -05:00