docs: update links to MikroORM docs following update (#11096)

* docs: update links to MikroORM docs following update

* update lock file
This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-01-27 11:12:37 +02:00
1 parent c8fc5edadd
commit a135c83f69
3 files changed
+6 -6

No files matched your search

@@ -65,13 +65,13 @@ class HelloModuleService {
You add two methods `getCount` and `getCountSql` that have the `InjectManager` decorator. Each of the methods also accept the `sharedContext` parameter which has the `MedusaContext` decorator. You add two methods `getCount` and `getCountSql` that have the `InjectManager` decorator. Each of the methods also accept the `sharedContext` parameter which has the `MedusaContext` decorator.
The entity manager is injected to the `sharedContext.manager` property, which is an instance of [EntityManager from the @mikro-orm/knex package](https://mikro-orm.io/api/5.9/knex/class/EntityManager). The entity manager is injected to the `sharedContext.manager` property, which is an instance of [EntityManager from the @mikro-orm/knex package](https://mikro-orm.io/api/knex/class/EntityManager).
You use the manager in the `getCount` method to retrieve the number of records in a table, and in the `getCountSql` to run a PostgreSQL query that retrieves the count. You use the manager in the `getCount` method to retrieve the number of records in a table, and in the `getCountSql` to run a PostgreSQL query that retrieves the count.
<Note> <Note>
Refer to [MikroORM's reference](https://mikro-orm.io/api/5.9/knex/class/EntityManager) for a full list of the entity manager's methods. Refer to [MikroORM's reference](https://mikro-orm.io/api/knex/class/EntityManager) for a full list of the entity manager's methods.
</Note> </Note>
@@ -156,7 +156,7 @@ The shared context's `transactionManager` property holds the transactional entit
<Note> <Note>
Refer to [MikroORM's reference](https://mikro-orm.io/api/5.9/knex/class/EntityManager) for a full list of the entity manager's methods. Refer to [MikroORM's reference](https://mikro-orm.io/api/knex/class/EntityManager) for a full list of the entity manager's methods.
</Note> </Note>
@@ -369,7 +369,7 @@ The `baseRepository_.transaction` method also receives as a second parameter an
<Note> <Note>
Refer to [MikroORM's reference](https://mikro-orm.io/api/5.9/knex/class/EntityManager) for a full list of the entity manager's methods. Refer to [MikroORM's reference](https://mikro-orm.io/api/knex/class/EntityManager) for a full list of the entity manager's methods.
</Note> </Note>
@@ -205,7 +205,7 @@ Use the `ContainerRegistrationKeys` enum imported from `@medusajs/framework/util
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
An instance of [MikroORM's entity manager](https://mikro-orm.io/api/5.9/knex/class/EntityManager). An instance of [MikroORM's entity manager](https://mikro-orm.io/api/knex/class/EntityManager).
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
@@ -126,7 +126,7 @@ The function passed to `testSuite` accepts the following parameters:
description: "Utility functions to query and manage the database.", description: "Utility functions to query and manage the database.",
children: [ children: [
{ {
type: `[SqlEntityManager](https://mikro-orm.io/api/5.9/knex/class/EntityManager)`, type: `[SqlEntityManager](https://mikro-orm.io/api/knex/class/EntityManager)`,
name: "manager", name: "manager",
description: "An instance of MikroORM's entity manager, which can be used to run queries and perform other database tasks." description: "An instance of MikroORM's entity manager, which can be used to run queries and perform other database tasks."
}, },