79555768

Date: 2025-04-04 15:45:54
Score: 2.5
Natty:
Report link

I was also looking for an answer to this question. I had a reference error: Can't access 'role' before initialization. The relationship between the tables was one-to-many and many-to-one. This solution helped me:

import { Role } from './Role';
@ManyToOne(role: Role, (role) => role.users) role: Role

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: OinkOink