Browse Source

(Docs) Normalized existing "virtual" / "magic" methods' descriptions, add missing ones (#19066)

tags/2.0.44
Alexey Rogachev 3 years ago committed by GitHub
parent
commit
1e41533789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      framework/db/ActiveRecord.php
  2. 4
      framework/db/ActiveRelationTrait.php

4
framework/db/ActiveRecord.php

@ -70,8 +70,8 @@ use yii\helpers\StringHelper;
*
* For more details and usage information on ActiveRecord, see the [guide article on ActiveRecord](guide:db-active-record).
*
* @method ActiveQuery hasMany($class, array $link) see [[BaseActiveRecord::hasMany()]] for more info
* @method ActiveQuery hasOne($class, array $link) see [[BaseActiveRecord::hasOne()]] for more info
* @method ActiveQuery hasMany($class, array $link) See [[BaseActiveRecord::hasMany()]] for more info.
* @method ActiveQuery hasOne($class, array $link) See [[BaseActiveRecord::hasOne()]] for more info.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Carsten Brandt <mail@cebe.cc>

4
framework/db/ActiveRelationTrait.php

@ -17,8 +17,8 @@ use yii\base\InvalidConfigException;
* @author Carsten Brandt <mail@cebe.cc>
* @since 2.0
*
* @method ActiveRecordInterface one($db = null)
* @method ActiveRecordInterface[] all($db = null)
* @method ActiveRecordInterface one($db = null) See [[ActiveQueryInterface::one()]] for more info.
* @method ActiveRecordInterface[] all($db = null) See [[ActiveQueryInterface::all()]] for more info.
* @property ActiveRecord $modelClass
*/
trait ActiveRelationTrait

Loading…
Cancel
Save