Skip to content

Commit

Permalink
models bugfix belongsToMany<> relation name
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 31, 2024
1 parent 9bb94fc commit 252776a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/models/torrent_returnrelation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Torrent_ReturnRelation final : // NOLINT(bugprone-exception-escape, misc-n
// Custom 'Tagged' pivot model ✨
// Ownership of a unique_ptr()
auto relation = belongsToMany<Tag_CustomPivot_NoRelations, Tagged>(
"tag_torrent", "torrent_id", "tag_id", {}, {}, "tags");
"tag_torrent", "torrent_id", "tag_id", {}, {}, "tagsCustom");

relation->as("tagged")
.withPivot("active")
Expand Down

0 comments on commit 252776a

Please sign in to comment.