Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending User with BaseEntity and UserWithPermissions #656

Closed
anonimusprogramus opened this issue Feb 29, 2020 · 1 comment
Closed

Extending User with BaseEntity and UserWithPermissions #656

anonimusprogramus opened this issue Feb 29, 2020 · 1 comment

Comments

@anonimusprogramus
Copy link
Contributor

Extending Entity with BaseEntity is really helpful.

But what about User Entity when I need to extend it with UserWithPermissions too, how to achieve that?

Ref: this issue

@LoicPoullain
Copy link
Member

UserWithPermissions will extend BaseEntity in version 1.8 onwards.

This feature does not introduce breaking changes:

  • Developers can still use getRepository(User).
  • JSON.stringify(user) returns the same value since BaseEntity does not have attributes (only instance methods or static methods and attributes).
  • It is still possible to use a different connection than the default one with BaseEntity.useConnection()

@LoicPoullain LoicPoullain mentioned this issue Apr 26, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants