Merge pull request #2962 from githubjeka/patch-1

add @method hasOne|hasMany declaration in yii\db\ActiveRecord.
This commit is contained in:
Qiang Xue
2014-04-02 10:06:32 -04:00

View File

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