message: Array.bulk update operation changes: handled for empty array case.
diff: @@ -4,7 +4,7 @@ import {ParamTypeCustom} from '../metadata/param-type-custom';
  import {router} from '../exports';
  import path = require('path');
  import * as Enumerable from 'linq';
  -
  +import Q = require('q');
  import {MetaUtils} from "../metadata/utils";
  import * as Utils from "../utils";
  import {CrudEntity} from "../dynamic/crud.entity";
  @@ -27,13 +27,14 @@ export class Initalize {
  getExtendedArrayMethod(action: string): () => Q.Promise<any> {
  return (function () {
  let curArr = this;
  - if (curArr[0]) {
  - let repo = (<CrudEntity>(curArr[0])).getRepo();
  - if (repo) {
  - return repo[action]([].concat(curArr));
  - }
  + if (!curArr[0]) {
  + return Q.when([]);
  }
  + let repo = (<CrudEntity>(curArr[0])).getRepo();
  + if (!repo) {
  return Q.reject("repository not found");
  + }
  + return repo[action]([].concat(curArr));
  });
  }
  