(em: EntityManager)
| 71 | readonly #em: EntityManager; |
| 72 | |
| 73 | constructor(em: EntityManager) { |
| 74 | this.#em = em; |
| 75 | this.#driver = this.#em.getDriver(); |
| 76 | this.#platform = this.#driver.getPlatform(); |
| 77 | this.#config = this.#em.config; |
| 78 | this.#metadata = this.#em.getMetadata(); |
| 79 | this.#hydrator = this.#config.getHydrator(this.#metadata); |
| 80 | this.#eventManager = this.#em.getEventManager(); |
| 81 | this.#comparator = this.#em.getComparator(); |
| 82 | } |
| 83 | |
| 84 | /** Creates a new entity instance or returns an existing one from the identity map, hydrating it with the provided data. */ |
| 85 | create<T extends object, P extends string = string>( |
nothing calls this directly
no test coverage detected