Skip to content

Commit

Permalink
test: fix imports in rebased tests file
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed Apr 29, 2020
1 parent 77c10b1 commit 19151c1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/issues/GH519.test.ts
@@ -1,15 +1,13 @@
import { Entity, PrimaryKey, MikroORM, ReflectMetadataProvider, ManyToOne, Collection, OneToMany, Logger } from '../../lib';
import { PostgreSqlDriver } from '../../lib/drivers/PostgreSqlDriver';
import { Entity, PrimaryKey, MikroORM, ReflectMetadataProvider, ManyToOne, Collection, OneToMany, Logger } from '@mikro-orm/core';
import { PostgreSqlDriver } from '@mikro-orm/postgresql';

@Entity()
class Competition {

@PrimaryKey()
id!: number;

@OneToMany(() => Registration, (registration) => registration.competition, {
orphanRemoval: true,
})
@OneToMany('Registration', 'competition', { orphanRemoval: true })
registrations: Collection<Registration> = new Collection<Registration>(this);

}
Expand All @@ -20,9 +18,7 @@ class User {
@PrimaryKey()
id!: number;

@OneToMany(() => Registration, (registration) => registration.user, {
orphanRemoval: true,
})
@OneToMany('Registration', 'user', { orphanRemoval: true })
registrations: Collection<Registration> = new Collection<Registration>(this);

}
Expand Down

0 comments on commit 19151c1

Please sign in to comment.