You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the method $model->getUser() returns ActiveQuery, the magic property $model->user will return User class instance (see why). I think, it is enough reason to describe the method and property separately.
It is possible to put magic @Property comments/descriptions to the result docs indepenently from the getter/setter method?
Thank you!
The text was updated successfully, but these errors were encountered:
Ditto for @method! And probably goes without saying, but any [[Class::property]] / [[Class::method()]] cross links should also be able to resolve to doc block-defined @property / @methods too.
Maybe also worth mentioning that there are cases where Yii’s own doc blocks are expecting this feature to exist. For example the [[scenario]] link in yii\base\Model::validate().
Hi!
I just noticed a @Property which described before a class declarations do not rendered to result apidoc htmls :(
For example, even AR-model classes genereated by gii have such @Property comments for each db field, but they do not appers in the docs.
Other case is for AR-relations. If a model have a relation to (for ex) User model, there is a method like:
While the method
$model->getUser()
returns ActiveQuery, the magic property$model->user
will return User class instance (see why). I think, it is enough reason to describe the method and property separately.It is possible to put magic @Property comments/descriptions to the result docs indepenently from the getter/setter method?
Thank you!
The text was updated successfully, but these errors were encountered: