Added PolymorphicRepositoryTrait.