public function getCommentCount()
    {
        return count(Comment::findAll([
            'parent_id' => $this->id,
            'model' => self::COMMENT_FOR,
            'status' => Comment::STATUS_APPROVED
        ]));
    }
public function getCommentCount()
    {
        return count(Comment::findAll([
            'parent_id' => $this->id,
            'model' => self::COMMENT_FOR,
            'status' => Comment::STATUS_APPROVED
        ]));
    }
public function getCommentCount ( ) { return count ( Comment :: findAll ( [ 'parent_id' => $ this -> id , 'model' => self :: COMMENT_FOR , 'status' => Comment :: STATUS_APPROVED ] ) ) ; }
Get count of comments for selected model.
@return integer
Get count of comments for selected model .