mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-18 17:21:26 +08:00
Better phpdoc
This commit is contained in:
@ -102,7 +102,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
|
||||
* - an array of name-value pairs: query by a set of column values and return a single record matching all of them.
|
||||
* - null: return a new [[ActiveQuery]] object for further query purpose.
|
||||
*
|
||||
* @return ActiveQuery|ActiveRecord|null When `$q` is null, a new [[ActiveQuery]] instance
|
||||
* @return ActiveQuery|static|null When `$q` is null, a new [[ActiveQuery]] instance
|
||||
* is returned; when `$q` is a scalar or an array, an ActiveRecord object matching it will be
|
||||
* returned (null will be returned if there is no matching).
|
||||
* @throws InvalidConfigException if the AR class does not have a primary key
|
||||
|
Reference in New Issue
Block a user