import {EntityManager} from './entity-manager';

export {DefaultRepository} from './default-repository';
export {Repository} from './repository';
export {Entity} from './entity';
export {EntityManager} from './entity-manager';
export {association} from './decorator/association';
export {resource} from './decorator/resource';
export {repository} from './decorator/repository';
export {validation} from './decorator/validation';
export {validatedResource} from './decorator/validated-resource';

export function configure(aurelia, configCallback) {
  let entityManagerInstance = aurelia.container.get(EntityManager);

  configCallback(entityManagerInstance);
}

@@ -40,16 +40,142 @@
 anager';
+%0Aimport %7BValidationGroup%7D from 'aurelia-validation';%0Aimport %7BHasAssociationValidationRule%7D from './validator/has-association';
 %0A%0Aexport
@@ -294,24 +294,68 @@
 './entity';%0A
+export %7BOrmMetadata%7D from './orm-metadata';%0A
 export %7BEnti
@@ -821,11 +821,152 @@
 stance);
+%0A%0A  ValidationGroup.prototype.hasAssociation = function() %7B%0A    return this.isNotEmpty().passesRule(new HasAssociationValidationRule());%0A  %7D;
 %0A%7D%0A

Add validation rule for associations to validator