105 Commits

Author SHA1 Message Date
1f7134634b Use static:: instead of $this for static method calls 2016-02-16 14:06:23 +03:00
e43c41c9ea db layer phpdoc fixes 2016-02-07 16:33:26 +01:00
5326b7aaf6 refactoring for getTableSchema 2016-01-19 15:19:04 +03:00
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00
30f003381d revised AR documentation
fixed some incorrectness in update() and insert() and also fixes #8761
2015-06-12 00:55:12 +02:00
67658cf57d Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly 2015-05-31 13:39:30 +03:00
5f099b3f8d Merge branch 'master' into 7374-inserting-ar-without-values 2015-04-21 09:49:46 +02:00
6751a80ea0 yii\db\Schema::insert() now returns primary key value for empty sequence 2015-04-20 11:22:58 +03:00
b05ea3d69e PK typecast at yii\db\ActiveRecord restored 2015-04-14 12:00:22 +03:00
4e8ee7b001 Use RETURNING for inserts for pgsql and oci to support PKs with a custom default value expression 2015-04-13 17:11:00 +03:00
fdb730a12a syntax fix [skip ci] 2015-04-10 21:51:33 -04:00
6e48ed05c7 allow calling Command::insert() without any columns 2015-04-11 02:20:13 +02:00
817bd4279a fixed AR phpdoc
fixes #7787
2015-03-19 12:59:05 +01:00
29f5dc37a5 Correct phpDoc for return in several cases
close #6733
2015-02-28 23:49:16 +01:00
2897257ec1 fixed wrong docs about loadDefaultValues() and init()
fixes #7373
2015-02-24 20:51:47 +01:00
ffe940180c simplify findByCondition 2015-02-03 16:31:00 -05:00
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