1e41533789
(Docs) Normalized existing "virtual" / "magic" methods' descriptions, add missing ones ( #19066 )
2021-12-08 12:27:28 +03:00
552593ca3b
Prepare for new apidoc (part 2) ( #19010 )
...
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
2021-11-18 10:10:09 +03:00
c8d027f649
Fix #18993 : Load defaults by attributes() in yii\db\ActiveRecord::loadDefaultValues()
2021-11-12 00:25:08 +03:00
b647c87e98
Fix #18393 : Fix framework/db/ActiveRecord.php to load data from db id cache is enabled
2020-11-25 11:03:25 +03:00
c1b033a15f
Using ExpressionInterface instead of Expression in ActiveRecord::findbycondition() ( #18188 )
2020-07-20 17:54:28 +03:00
931f080aee
Fix #18182 : yii\db\Expression was not supported as condition in ActiveRecord::findOne() and ActiveRecord::findAll()
2020-07-20 00:21:41 +03:00
d2c2f63686
Fixes #17127 : yii\db\ActiveRecord::findOne() now accepts table aliases
2019-03-22 15:59:26 +03:00
adf8f9a32f
Fixes #15931 : yii\db\ActiveRecord::findOne() now accepts quoted table and column names using curly and square braces respectively
2019-01-20 17:20:43 +03:00
b195d9e780
optimize table name
2018-03-21 18:07:30 +01:00
0af1c05d6a
yii\db\ActiveRecord::findOne() now accepts column names prefixed with table name
...
fixes #15931
2018-03-21 17:44:22 +01:00
a38302fdfd
improved filtering condition on yii\db\ActiveRecord
2018-03-20 11:42:28 +01:00
5f75916cde
Wording adjustments and doc enhancements [skip ci]
2018-03-20 11:20:56 +01:00
b37f361ad7
Fixed possible SQL injection through ActiveRecord::findOne()
2018-03-20 11:20:56 +01:00
1a1fb49426
Fixes #15522 : Fixed yii\db\ActiveRecord::refresh() method does not use an alias in the condition
2018-02-01 16:13:19 +07:00
65f6b59b35
@inheritdoc notation changed
2018-01-23 13:11:24 +02:00
5a8c3d537b
Enable phpdoc_summary rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
1f26db9fb7
Applied code style fixes
2017-07-21 15:42:06 +03:00
0559a95db9
Fixed ambiguous column error in BaseActiveRecord::refresh()
...
when the query adds a JOIN by default
fixes #13757
2017-07-11 11:47:35 +02:00
6aa0ed2026
Adjusted PHP 7 return types [skip ci]
2017-07-02 20:17:46 +03:00
6397791513
Fixed whitespaces to match code style [skip ci]
2017-03-14 09:42:13 +03:00
319e27c45c
Fixed yii\db\BaseActiveRecord::deleteAll() changes method signature declared by yii\db\ActiveRecordInterface::deleteAll()
2017-02-09 12:16:04 +02:00
30e599b94f
updated docs about deleteALl() and updateAll()
2016-12-27 21:35:45 +01:00
a3b6dfbb7b
Catch \Throwable in critical places
...
Added catch `\Throwable` to be compatible with PHP7.
Added it in cases where object state needs to be kept consistent.
Mainly on transactions but also some other places where some values are
reset before exiting.
Most of them could probably be refactored by using `finally` in 2.1, as
that requires PHP 5.5.
fixes #12619
2016-12-16 02:20:02 +01:00
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
f006db9b2b
update docs of AR::update()
...
fixes #12461
2016-09-05 11:57:08 +02:00
f0e999e017
Cosmetic changes ( #12292 ) [skip ci]
2016-08-24 13:10:03 +03:00
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