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
[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)
Steps to reproduce or a small repository showing the problem:
The subscriber interface for afterLoad() is inconsistent with the other events. All the other hooks take objects which have the entity and more context about the event (e.g. QueryRunner and EntityManager used).
The reason for this seems to be largely historical, due to how the interfaces evolved over time. The info is available in Broadcaster.ts but not passed because it doesn't fit the interface.
This was previously reported in #2510 but closed after 2 months without comment.
The text was updated successfully, but these errors were encountered:
The optionality of the event parameter will keep existing subscribers working. New subscribers can use the new parameter to get additional info about the event.
I'm looking into making the change, hope to have a pull request ready soon.
Issue type:
[ ] question
[ ] bug report
[x] feature request
[ ] documentation issue
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
The subscriber interface for
afterLoad()
is inconsistent with the other events. All the other hooks take objects which have the entity and more context about the event (e.g. QueryRunner and EntityManager used).The reason for this seems to be largely historical, due to how the interfaces evolved over time. The info is available in
Broadcaster.ts
but not passed because it doesn't fit the interface.This was previously reported in #2510 but closed after 2 months without comment.
The text was updated successfully, but these errors were encountered: