Nebojša Cvetković

Results 12 comments of Nebojša Cvetković

Was this ever resolved? I'm getting the same issue with latest ISO.

Useful solution for this pattern: ```ts class ConstructableBaseEntity extends BaseEntity { static construct(this: new () => T, params: Partial): T { return Object.assign(new this(), params); } } ``` ```ts @Entity()...

I might be wrong, but I think this is because the video isn't saved yet in the database. It is attempting to set `videoId` to 3 based on the object...

Would it be useful if I sent in more PRs for some of the router TODOs? I would love to help out further but I wouldn't want to waste your...

This should be quite an easy feature to implement - there is already migration generation so it's just a check for whether any steps are required to sync the database...

I believe you don't need to (and in this case shouldn't) use `@JoinColumn` if you have manually defined the `createdById` column. The matching between relation and relation id column is...

> I would expect the save method to only update the fields that were changed since the entity load from the database. > In the end, I would expect the...

I think the correct way to do this would be using a custom base entity class, that keeps track of modifications to the object, perhaps using a `Proxy`. You would...

I believe this is related to: https://github.com/typeorm/typeorm/blob/f27622daf9784d06496975bbbcacdb0938fd2c82/src/entity-manager/EntityManager.ts#L781-L786 A `SELECT` with `take: 1` should really only be used if a One-to-Many or Many-to-Many relation is present, since for One-to-One or Many-to-One...

Try use an alias with `createQueryBuilder('main')`, I think it might be mixing things up the entity name is the same as the alias and you are using it in the...