diff --git a/docs/building/hello-world.mdx b/docs/building/hello-world.mdx index c104d25d0..e6c62b22f 100644 --- a/docs/building/hello-world.mdx +++ b/docs/building/hello-world.mdx @@ -181,7 +181,8 @@ And paste the following code. auto posts = DB::select("select * from posts"); while(posts.next()) - qDebug() << posts.value("id").toULongLong() << posts.value("name").toString(); + qDebug() << posts.value("id").toULongLong() + << posts.value("name").toString(); } ## Hello world with CMake diff --git a/docs/tinyorm/relationships.mdx b/docs/tinyorm/relationships.mdx index 6ddfe141c..4bda68b5a 100644 --- a/docs/tinyorm/relationships.mdx +++ b/docs/tinyorm/relationships.mdx @@ -529,7 +529,7 @@ As you have already learned, working with many-to-many relations requires the pr for (auto *role : user->getRelationValue("roles")) qDebug() << role->getRelation("pivot") - ->getAttribute("created_at"); + ->getAttribute("created_at"); Notice that each `Role` model we retrieve has automatically assigned a `pivot` relationship. This relation contains a model representing the intermediate table and it is an instance of the `Orm::Tiny::Relations::Pivot` model class. @@ -582,7 +582,7 @@ Once the custom intermediate table relation name has been specified, you may acc for (auto &user : users) for (auto *podcast : user.getRelation("podcasts")) qDebug() << podcast->getRelation("subscription") - ->getAttribute("created_at"); + ->getAttribute("created_at"); ### Defining Custom Intermediate Table Models @@ -692,7 +692,7 @@ Once the custom pivot model `RoleUser` has been defined, `getRelation` or `getRe for (auto &user : users) for (auto *role : user.getRelation("roles")) qDebug() << role->getRelation("pivot") - ->getAttribute("created_at"); + ->getAttribute("created_at"); :::caution Custom Pivot models may not use the `SoftDeletes` base class. If you need to soft delete pivot records consider converting your pivot model to an actual TinyORM model.