-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Or at least, I was having problems with it.
I could not use the extended repository without invoking getCustomRepository
instead of the standard getRepository
as stated in the readme.
@Entity()
export class Address implements PolymorphicChildInterface {
....
}
@EntityRepository(Address)
export class AddressRepository extends AbstractPolymorphicRepository<Address> {}
import { Address, AddressRepository } from '../';
let addressRepository: AbstractPolymorphicRepository<Address>;
addressRepository = await TestConnection.connection.getCustomRepository(AddressRepository);
Metadata
Metadata
Assignees
Labels
No labels