88 Commits

Author SHA1 Message Date
780fdd611a Fixes #6710 2014-12-31 10:55:54 -05:00
d5176a463f better exception message
- yii\db\BaseActiveRecord::findByCondition better exception
- yii\db\ActiveRecord::findByCondition better exception

close #6704
2014-12-31 14:53:44 +01:00
db56384fcf improved documentation about loadDefaultValues()
issue #6126
2014-11-20 11:50:32 +01:00
73cb5f8aac changed syntax for referencing the guide in apidoc
New syntax:

```
[link to guide](guide:file-name.md)
[link to guide](guide:file-name.md#subsection)
```

fixes #4719
2014-09-05 14:59:22 +02:00
f099616967 improved IDE autocompletion for AR::find()
[ci skip]
2014-08-12 23:21:34 +02:00
25bf486b7f save some function calls on AR insert 2014-08-12 18:13:49 +02:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
e8c6bb516f Fixes #4048: Added init event to ActiveQuery classes 2014-07-19 20:26:58 -04:00
44f20c61a0 changedAttributes of AfterSaveEvent contain an old values 2014-06-27 18:51:21 +04:00
27943ce735 Merge pull request #4063 from yiisoft/typecast-split
split typecast method into two
2014-06-27 02:14:31 +02:00
5d0452b2ae rename ColumnSchema::typecast to phpTypecast 2014-06-27 02:12:59 +02:00
86f06677e9 Refactored AR findOne() and findAll(). 2014-06-25 21:31:15 -04:00
8a70d9fbd1 rename column schema typecast method 2014-06-26 00:11:04 +02:00
6a48f68955 split typecast method into two
one method for fetching data and one for sending to db.

fixes #2287
2014-06-26 00:00:37 +02:00
eeb784a11e added typecast to auto increment PK
fixes #3583
2014-06-25 21:45:47 +02:00
7b13c370e9 fixes #3681, disambiguate PK in findOne and findAll 2014-06-25 20:57:20 +02:00
2cab70b064 Ensure consistent behavior in ActiveRecord::afterSave()
fixes #4012
2014-06-25 00:29:34 +02:00
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
3c400dbca8 fixed file PHPdoc
issue #3026
2014-04-10 22:10:59 +02:00
fa767ceaca renamed attributes to attributeNames in model
fixes #3034
2014-04-09 18:54:53 +02:00
3fdcf11f24 updated phpdoc 2014-04-09 18:51:45 +02:00
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
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
90caa527f2 Update ActiveRecord.php
fix for https://github.com/yiisoft/yii2/pull/2958
2014-04-02 17:00:39 +03:00
271dccdc6b Fixes #2931. 2014-03-31 11:34:47 -04:00
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +04:00
c73cfe147f Fixed inconsistencies with setting old attributes and pks
issue #2892
2014-03-27 13:17:54 +01:00
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
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
af030c5f5b Added $skipIfSet to ActiveRecord::loadDefaultValues 2014-03-20 19:43:59 +04:00
39b0c454e1 Default values init moved to a method that should be called manually 2014-03-19 23:04:48 +04:00
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
b9287abf81 minor fixes. 2014-03-17 09:47:34 -04:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
56f52f87d2 fixed AR class docs, do not break comment 2014-03-02 18:13:48 +01:00
ba2c35b894 Fixes #2482. 2014-02-23 18:09:25 -05:00
26717e3e76 allow referencing the guide from API docs 2014-02-22 13:43:57 +01:00
505762d49c updated docs about active relation 2014-02-21 18:53:28 +01:00
3b40d44909 made createQuery() config param optional 2014-02-20 05:54:47 +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
bea9e3fc06 Fixes #1645: Added support for nested DB transactions 2014-02-15 22:16:09 -05:00
4a9f47bedd refactored sphinx and db AR to call parent implementation of populateRecord() 2014-02-03 14:12:03 +01: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
8001d2348c refactored ActiveRecord::create(). 2014-02-02 15:00:54 -05:00
a97f6387f9 added check column 2014-02-02 22:36:56 +04:00
0e0acb2731 added inherit doc block and task number 2014-02-02 20:22:56 +04:00
d017567273 override create 2014-02-01 22:31:13 +04:00
262189533a huge amount of documentation link fixes 2014-01-28 17:54:40 +01:00
f6dd6fa2e9 Renamed ActiveRecordInterface::createActiveRelation() to createRelation() 2014-01-24 14:46:53 -05:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00