Commit Graph

71 Commits

Author SHA1 Message Date
Carsten Brandt
c6e1a2f02f Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2: (79 commits)
  Refactored app bootstrap logic.
  Update authorization.md
  Fixes #3052: Fixed the issue that cache dependency data is not reused when `reusable` is set true
  start debug logging only if debug runs when bootstrap.
  Update finnish translation
  Add ODBC support to yii\db\Connection
  updated error handler and requirement checker links.
  fixed broken API links [skip ci]
  added more doc [skip ci]
  update class map.
  Fixes #2034: Added `ContentNegotiator` to support response format and language negotiation
  renamed attributes to attributeNames in model
  updated phpdoc
  Removed `Application::preload` in favor of `Application::bootstrap`
  Update module-debug.md
  Update model.md
  Fixes
  Update basics.md
  typo fix [skip ci]
  Added `HtmlResponseFormatter` and `JsonResponseFormatter`
  ...
2014-04-10 22:22:36 +02:00
Carsten Brandt
3c400dbca8 fixed file PHPdoc
issue #3026
2014-04-10 22:10:59 +02:00
Carsten Brandt
fa767ceaca renamed attributes to attributeNames in model
fixes #3034
2014-04-09 18:54:53 +02:00
Carsten Brandt
3fdcf11f24 updated phpdoc 2014-04-09 18:51:45 +02:00
Alexander Makarov
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
Qiang Xue
8b4dfcc876 Fixes #2955: Changed the signature of ActiveQuery constructors and ActiveRecord::createQuery() to simplify customizing ActiveQuery classes 2014-04-03 10:36:52 -04:00
Evgeniy Tkachenko
90caa527f2 Update ActiveRecord.php
fix for https://github.com/yiisoft/yii2/pull/2958
2014-04-02 17:00:39 +03:00
Qiang Xue
271dccdc6b Fixes #2931. 2014-03-31 11:34:47 -04:00
Alexander Makarov
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +04:00
Carsten Brandt
c73cfe147f Fixed inconsistencies with setting old attributes and pks
issue #2892
2014-03-27 13:17:54 +01:00
Carsten Brandt
f4395206b7 reset dirty attributes after afterSave
so information about changed values is available in `afterSave`-event.

fixes #2892
2014-03-27 12:14:03 +01:00
Carsten Brandt
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
Alexander Makarov
af030c5f5b Added $skipIfSet to ActiveRecord::loadDefaultValues 2014-03-20 19:43:59 +04:00
Alexander Makarov
39b0c454e1 Default values init moved to a method that should be called manually 2014-03-19 23:04:48 +04:00
Alexander Makarov
b66427f8c7 Fixes #2726: ActiveRecord now fills default values on creating new instance of the model if defaults are available from DB schema 2014-03-19 18:06:20 +04:00
Qiang Xue
b9287abf81 minor fixes. 2014-03-17 09:47:34 -04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Carsten Brandt
56f52f87d2 fixed AR class docs, do not break comment 2014-03-02 18:13:48 +01:00
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