[BUGFIX] Use interface in PersistenceManager::injectQueryFactory