src/back/models/EntitySpecification.js
function addMethod(func, name) {
    var newMethods = methods.MethodDictionary.concat(
      _methods,
      func,
      name
    );

    if (_Entity) {
      _loadEntityMethod(func, name);
    }

    _methods = newMethods;
  }
function addMethod(func, name) {
    var newMethods = methods.MethodDictionary.concat(
      _methods,
      func,
      name
    );

    if (_Entity) {
      _loadEntityMethod(func, name);
    }

    _methods = newMethods;
  }
function addMethod ( func , name ) { var newMethods = methods . MethodDictionary . concat ( _methods , func , name ) ; if ( _Entity ) { _loadEntityMethod ( func , name ) ; } _methods = newMethods ; }
Adds a new method to the methods in the specification.
@name module:back4app-entity/models.EntitySpecification#addMethod
@function
@param {!function} func This is the method's function to be added.
@param {!string} name This is the name of the method.
@example
entitySpecification.addMethod(
function () { return 'newMethod'; },
'newMethod'
);
Adds a new method to the methods in the specification .