Inject repository into Entity, OO event handling