Update ActiveRecord.php

fix for https://github.com/yiisoft/yii2/pull/2958
Merge pull request #2962 from githubjeka/patch-1

add @method hasOne|hasMany declaration in yii\db\ActiveRecord.