Skip to content

Commit

Permalink
docs: update links to MikroORM docs following update (medusajs#11096)
Browse files Browse the repository at this point in the history
* docs: update links to MikroORM docs following update

* update lock file
  • Loading branch information
shahednasser authored and jimrarras committed Jan 28, 2025
1 parent 8c64a24 commit 7b513b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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.

<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>

Expand Down Expand Up @@ -156,7 +156,7 @@ The shared context's `transactionManager` property holds the transactional entit

<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>

Expand Down Expand Up @@ -369,7 +369,7 @@ The `baseRepository_.transaction` method also receives as a second parameter an

<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>

Expand Down
2 changes: 1 addition & 1 deletion www/apps/resources/app/medusa-container-resources/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Use the `ContainerRegistrationKeys` enum imported from `@medusajs/framework/util
</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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ The function passed to `testSuite` accepts the following parameters:
description: "Utility functions to query and manage the database.",
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",
description: "An instance of MikroORM's entity manager, which can be used to run queries and perform other database tasks."
},
Expand Down

0 comments on commit 7b513b9

Please sign in to comment.