You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Entity metadata for User#allServices was not found. Check if you specified a correct entity object and if it's connected in the connection options.
Can you help me with this problem?
Thank you,
Karel
The text was updated successfully, but these errors were encountered:
Then you can extend the User class as described in the documentation:
import { Entity, Column} from "typeorm";
import { User as AccountsUser } from "@accounts/typeorm";
@Entity()
export class User extends AccountsUser {
@Column()
public foo: string;
}
note the migration will generate, user_session, user_email, and user_service tables at the same time, which I assume are required, and the root of this problem.
As long as you don't mind naming your user table user this approach should work(?).
Hi,
I have extended the
User
entity as described here:Then I tried to generate migrations using with
where
typeorm
is defined inpackage.json
as followsand got this error
Can you help me with this problem?
Thank you,
Karel
The text was updated successfully, but these errors were encountered: