From 9b1ab7cd361158f6ceb66ddcf28e2bc8b88fb633 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 13 Aug 2014 22:58:58 +0400 Subject: [PATCH] Fixes #4708 --- extensions/mongodb/ActiveRecord.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/mongodb/ActiveRecord.php b/extensions/mongodb/ActiveRecord.php index a44519eb42..3fd3bad485 100644 --- a/extensions/mongodb/ActiveRecord.php +++ b/extensions/mongodb/ActiveRecord.php @@ -146,12 +146,15 @@ abstract class ActiveRecord extends BaseActiveRecord * This method must be overridden by child classes to define available attributes. * Note: primary key attribute "_id" should be always present in returned array. * For example: - * ~~~ + * + * ```php * public function attributes() * { * return ['_id', 'name', 'address', 'status']; * } - * ~~~ + * ``` + * + * @throws \yii\base\InvalidConfigException if not implemented * @return array list of attribute names. */ public function attributes()