common/models/resources/ModelComment.php
public static function queryL0Approved( $parentId, $parentType, $type = ModelComment::TYPE_COMMENT, $config = [] ) {

		return self::queryByType( $parentId, $parentType, $type, $config )->andWhere( [ 'baseId' => null ] );
	}
public static function queryL0Approved( $parentId, $parentType, $type = ModelComment::TYPE_COMMENT, $config = [] ) {

		return self::queryByType( $parentId, $parentType, $type, $config )->andWhere( [ 'baseId' => null ] );
	}
public static function queryL0Approved ( $ parentId , $ parentType , $ type = ModelComment :: TYPE_COMMENT , $ config = [ ] ) { return self :: queryByType ( $ parentId , $ parentType , $ type , $ config ) -> andWhere ( [ 'baseId' => null ] ) ; }
Return query to find top level approved comments.

@param integer $parentId
@param string $parentType
@param string $type
@param array $config
@return \yii\db\ActiveQuery to query by email.
Return query to find top level approved comments .