Maksim Spirkov
c82da8dc82
Add visibility for all class elements ( #20557 )
2025-10-02 01:27:23 +03:00
Maksim Spirkov
04d0c0dd5f
Fix #20516 : Fix @template annotations in ActiveRecord
2025-09-08 13:08:02 +03:00
Maksim Spirkov
53256fdd24
Fix #20513 : Fix code examples in PHPDoc
2025-09-06 00:22:56 +03:00
Максим Спирков
0873d0745b
Fix #20434 : Added PHPStan/Psalm annotations for hasMany and hasOne methods
2025-07-08 11:35:12 +03:00
Максим Спирков
8b50a4942a
Fix @var tags syntax in framework folder ( #20392 )
2025-06-03 19:57:08 +03:00
Максим Спирков
2b6f0be715
Added and fixed Psalm/PHPStan annotations for ActiveRecord and ActiveQuery ( #20363 )
2025-04-28 22:27:06 +03:00
Alexander Makarov
52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
Razvan Grigore
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
Jiepeng Cao
473ead8e46
Optimize: simplified regexp ( #19541 )
2022-09-06 09:42:58 +03:00
Bizley
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
Brandon Kelly
a87c02c712
Fix more types ( #19333 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
* Null types for Validator
* Several more null types
* One more
* Make AccessRule::$allow always a boolean
It doesn't have any special null handling, so it's safe to default to false
* Validator::$skipOnEmpty is always a boolean
* Catch all throwable from Widget::widget()
* Don't limit $previous args to \Exception
The actual \Exception allows $previous to be any throwable in PHP 7+
* Add Throwable catch block to Instance::get()
* Throwable cleanup
Comment changes only.
- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced
* Yii::setlogger() accepts null
* ArrayHelper::removeValue() can remove any type of value
* Change default $allow value to false
2022-04-03 11:20:21 +02:00
Brandon Kelly
4628b91e73
Fix types ( #19332 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
2022-03-30 18:40:10 +02:00
Anton
3203353a38
Remove code duplication in ActiveRecord::attributes()
2022-02-20 01:01:24 +03:00
Alexey Rogachev
1e41533789
(Docs) Normalized existing "virtual" / "magic" methods' descriptions, add missing ones ( #19066 )
2021-12-08 12:27:28 +03:00
Alexey Rogachev
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
Anton
c8d027f649
Fix #18993 : Load defaults by attributes() in yii\db\ActiveRecord::loadDefaultValues()
2021-11-12 00:25:08 +03:00
hooman-mirghasemi
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
rhertogh
c1b033a15f
Using ExpressionInterface instead of Expression in ActiveRecord::findbycondition() ( #18188 )
2020-07-20 17:54:28 +03:00
rhertogh
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
Albert Borsos
d2c2f63686
Fixes #17127 : yii\db\ActiveRecord::findOne() now accepts table aliases
2019-03-22 15:59:26 +03:00
Dmytro Naumenko
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
Carsten Brandt
b195d9e780
optimize table name
2018-03-21 18:07:30 +01:00
Carsten Brandt
0af1c05d6a
yii\db\ActiveRecord::findOne() now accepts column names prefixed with table name
...
fixes #15931
2018-03-21 17:44:22 +01:00
Carsten Brandt
a38302fdfd
improved filtering condition on yii\db\ActiveRecord
2018-03-20 11:42:28 +01:00
Alexander Makarov
5f75916cde
Wording adjustments and doc enhancements [skip ci]
2018-03-20 11:20:56 +01:00
SilverFire - Dmitry Naumenko
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
Klimov Paul
65f6b59b35
@inheritdoc notation changed
2018-01-23 13:11:24 +02:00
Robert Korulczyk
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
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
Alexander Makarov
1f26db9fb7
Applied code style fixes
2017-07-21 15:42:06 +03:00
Carsten Brandt
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
Alex
6aa0ed2026
Adjusted PHP 7 return types [skip ci]
2017-07-02 20:17:46 +03:00
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
2017-03-14 09:42:13 +03:00
Klimov Paul
319e27c45c
Fixed yii\db\BaseActiveRecord::deleteAll() changes method signature declared by yii\db\ActiveRecordInterface::deleteAll()
2017-02-09 12:16:04 +02:00
Carsten Brandt
30e599b94f
updated docs about deleteALl() and updateAll()
2016-12-27 21:35:45 +01:00
Carsten Brandt
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
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
Carsten Brandt
f006db9b2b
update docs of AR::update()
...
fixes #12461
2016-09-05 11:57:08 +02:00
Roman Grinyov
f0e999e017
Cosmetic changes ( #12292 ) [skip ci]
2016-08-24 13:10:03 +03:00
Alexander Makarov
1f7134634b
Use static:: instead of $this for static method calls
2016-02-16 14:06:23 +03:00
Carsten Brandt
e43c41c9ea
db layer phpdoc fixes
2016-02-07 16:33:26 +01:00
githubjeka
5326b7aaf6
refactoring for getTableSchema
2016-01-19 15:19:04 +03:00
Alexander Makarov
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
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
2015-08-02 00:27:19 +02:00
Carsten Brandt
30f003381d
revised AR documentation
...
fixed some incorrectness in update() and insert() and also fixes #8761
2015-06-12 00:55:12 +02:00
Alexander Makarov
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
Jan Was
5f099b3f8d
Merge branch 'master' into 7374-inserting-ar-without-values
2015-04-21 09:49:46 +02:00
Klimov Paul
6751a80ea0
yii\db\Schema::insert() now returns primary key value for empty sequence
2015-04-20 11:22:58 +03:00
Klimov Paul
b05ea3d69e
PK typecast at yii\db\ActiveRecord restored
2015-04-14 12:00:22 +03:00