We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f41c5c + a796caa commit 147c8b2Copy full SHA for 147c8b2
README.md
@@ -147,8 +147,8 @@ const repository = connection.getRepository(MerchantRepository); // That extends
147
148
const advert = new AdvertEntity();
149
150
-const parent = new MerchantEntity();
151
-merchant.adverts= [advert];
+const merchant = new MerchantEntity();
+merchant.adverts = [advert];
152
153
await repository.save(merchant);
154
```
@@ -181,7 +181,7 @@ extends typeorm's Repository.create method
181
const repository = connection.getRepository(AdvertRepository); // That extends AbstractPolymorphicRepository
182
183
const results = await repository.create({
184
- owner: new UserEntity, // or MerchantEntity
+ owner: new UserEntity(), // or MerchantEntity()
185
});
186
187
0 commit comments