MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / push

Method push

packages/core/src/EntityManager.ts:763–767  ·  view source on GitHub ↗
(source: Dictionary<FilterDef>)

Source from the content-addressed store, hash-verified

761 const ret: Dictionary[] = [];
762 const active = new Set<string>();
763 const push = (source: Dictionary<FilterDef>) => {
764 const activeFilters = QueryHelper.getActiveFilters(meta, options, source).filter(f => !active.has(f.name));
765 filters.push(...activeFilters);
766 activeFilters.forEach(f => active.add(f.name));
767 };
768 push(this.config.get('filters'));
769 push(this.#filters);
770 push(meta.filters);

Callers 15

fetchRefcursorsMethod · 0.80
dropMethod · 0.80
dropIndexesMethod · 0.80
ensureIndexesMethod · 0.80
createIndexesMethod · 0.80
createUniqueIndexesMethod · 0.80
buildFieldsMethod · 0.80
_findMethod · 0.80
countByMethod · 0.80
executeMethod · 0.80
findOneFunction · 0.80

Calls 4

filterMethod · 0.80
getActiveFiltersMethod · 0.80
addMethod · 0.80
hasMethod · 0.65

Tested by 15

afterFlushMethod · 0.64
queryFunction · 0.64
releaseFunction · 0.64
mockMysqlPoolFunction · 0.64
mockPoolClientFunction · 0.64
generateProductsFunction · 0.64
afterFlushMethod · 0.64
resolveFunction · 0.64
constructorMethod · 0.64
constructorMethod · 0.64
createUsersFunction · 0.64
constructorMethod · 0.64