From 3dac4f94cc91b56b625c362d1635fac102aaa254 Mon Sep 17 00:00:00 2001 From: Quinten Cabo Date: Wed, 30 Aug 2023 22:38:17 +0200 Subject: [PATCH] fixed vuex orm typo in the docs --- docs/content/1.guide/3.relationships/3.one-to-many.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/1.guide/3.relationships/3.one-to-many.md b/docs/content/1.guide/3.relationships/3.one-to-many.md index ffeb32912..7382d3d7c 100644 --- a/docs/content/1.guide/3.relationships/3.one-to-many.md +++ b/docs/content/1.guide/3.relationships/3.one-to-many.md @@ -198,7 +198,7 @@ class Post extends Model { } ``` -Though posts do not contain a country_id column, the `hasManyThrough` relation provides access to a country's posts. To perform this query, Vuex ORM inspects the `country_id` on the intermediate User model. After finding the matching user IDs, they are used to query the Post model. +Though posts do not contain a country_id column, the `hasManyThrough` relation provides access to a country's posts. To perform this query, Pinia ORM inspects the `country_id` on the intermediate User model. After finding the matching user IDs, they are used to query the Post model. The first argument passed to the `hasManyThrough` method is the final model we wish to access, while the second argument is the intermediate model. The third argument is the name of the foreign key on the intermediate model. The fourth argument is the name of the foreign key on the final model.