Skip to content

Commit 54e04bc

Browse files
committed
fix: etended descriptions
1 parent 57acb2d commit 54e04bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ export class AdvertRepository extends AbstractPolymorphicRepository<
2828
> {}
2929
```
3030

31-
> The below decorators will only work when using the above extended PolymorphicRepository
31+
> The below decorators will only work when using the above abstract repository AbstractPolymorphicRepository
3232
3333
### Setup the entities
3434

35+
This is an example of one child, 2 parent types
36+
3537
#### Parents
3638

3739
```ts
@@ -80,6 +82,7 @@ export class AdvertEntity implements PolymorphicChildInterface {
8082
This will result in the adverts table having values
8183

8284
```
85+
adverts table
8386
==========================
8487
id | entityId | entityType
8588
==========================
@@ -90,7 +93,7 @@ id | entityId | entityType
9093

9194
## Decorators
9295

93-
Both `PolymorphicChildren` and `PolymophicParent` are the same. Currently some of the default values are different but eventually these method should be synonyms of one another. Mainly because it helped me describe the relationship directions.
96+
Both `PolymorphicChildren` and `PolymophicParent` are treated same. Currently some of the default values are different but eventually these method should be synonyms of one another. They have different names because it helped me describe the relationship directions which could be explained as 'parent' 'child' in different ways.
9497

9598
### Ambiguous direction
9699

0 commit comments

Comments
 (0)