Skip to content

Relationships

The model layer uses standard WPFluent relation helpers such as belongsTo, hasMany, belongsToMany, and hasManyThrough.

Relationship Inventory

SourceMethodTypeTarget
ActivityfeedbelongsToFeed
ActivityspacebelongsToBaseSpace
ActivityuserbelongsToUser
ActivityxprofilebelongsToXProfile
BaseSpaceownerbelongsToUser
BaseSpacespace_pivotbelongsToSpaceUserPivot
BaseSpaceadminsbelongsToManyUser
BaseSpacepostshasManyFeed
BaseSpacecommentshasManyThroughComment
BaseSpacemembersbelongsToManyUser
BaseSpacex_membersbelongsToManyXProfile
BaseSpacegroupbelongsToSpaceGroup
CommentuserbelongsToUser
CommentxprofilebelongsToXProfile
CommentmediahasOneMedia
CommentpostbelongsToFeed
CommentspacehasOneThroughBaseSpace
CommentreactionshasManyReaction
CourseownerbelongsToUser
Coursespace_pivotbelongsToSpaceUserPivot
CourseadminsbelongsToManyUser
CoursepostshasManyFeed
CoursecommentshasManyThroughComment
CoursemembersbelongsToManyUser
Coursex_membersbelongsToManyXProfile
CoursegroupbelongsToSpaceGroup
CoursecreatorhasOneThroughXProfile
CoursestudentsbelongsToManyUser
Coursecourse_topicshasManyCourseTopic
CourseenrollmentbelongsToSpaceUserPivot
Coursestudent_enrollmentshasManySpaceUserPivot
CoursegroupbelongsToSpaceGroup
CoursecategoriesbelongsToManyTerm
CourseLessontopicbelongsToCourseTopic
CourseLessoncoursebelongsToCourse
CourseLessonownerbelongsToUser
CourseLessoncommentshasManyComment
CourseLessonreactionshasManyReaction
CourseLessonlessonCompletedhasManyReaction
CourseLessonmediahasManyMedia
CourseLessontermsbelongsToManyTerm
CourseTopiclessonshasManyCourseLesson
CourseTopicownerbelongsToUser
CourseTopiccoursebelongsToCourse
CourseTopiccommentshasManyComment
CourseTopicreactionshasManyReaction
CourseTopictermsbelongsToManyTerm
FeeduserbelongsToUser
FeedxprofilebelongsToXProfile
FeedspacebelongsToBaseSpace
FeedcommentshasManyComment
FeedreactionshasManyReaction
FeedfollowshasManyFollow
FeedsurveyVoteshasManyReaction
FeedtermsbelongsToManyTerm
FeedactivitieshasManyActivity
FeednotificationshasManyNotification
FeedmediahasManyMedia
FollowfollowerbelongsToXProfile
FollowfollowedbelongsToXProfile
MediafeedbelongsToFeed
MediauserbelongsToUser
MediaxprofilebelongsToXProfile
ModerationpostbelongsToFeed
ModerationcommentbelongsToComment
ModerationreporterbelongsToXProfile
NotificationsubscribershasManyNotificationSubscriber
NotificationsubscriberhasOneNotificationSubscriber
NotificationfeedbelongsToFeed
Notificationsrc_userbelongsToUser
NotificationxprofilebelongsToXProfile
NotificationPreferenceuserbelongsToUser
NotificationPreferencexprofilebelongsToXProfile
NotificationSubscriberuserbelongsToUser
NotificationSubscriberxprofilebelongsToXProfile
NotificationSubscribernotificationbelongsToNotification
NotificationSubscriptionuserbelongsToUser
NotificationSubscriptionxprofilebelongsToXProfile
ReactionuserbelongsToUser
ReactionxprofilebelongsToXProfile
ReactionfeedbelongsToFeed
ReactioncommentbelongsToComment
SidebarLinkownerbelongsToUser
SidebarLinkspace_pivotbelongsToSpaceUserPivot
SidebarLinkadminsbelongsToManyUser
SidebarLinkpostshasManyFeed
SidebarLinkcommentshasManyThroughComment
SidebarLinkmembersbelongsToManyUser
SidebarLinkx_membersbelongsToManyXProfile
SidebarLinkgroupbelongsToSpaceGroup
SpaceownerbelongsToUser
Spacespace_pivotbelongsToSpaceUserPivot
SpaceadminsbelongsToManyUser
SpacepostshasManyFeed
SpacecommentshasManyThroughComment
SpacemembersbelongsToManyUser
Spacex_membersbelongsToManyXProfile
SpacegroupbelongsToSpaceGroup
SpaceGroupownerbelongsToUser
SpaceGroupspaceshasManyBaseSpace
SpaceUserPivotuserbelongsToUser
SpaceUserPivotxprofilebelongsToXProfile
SpaceUserPivotspacebelongsToBaseSpace
TermpostsbelongsToManyFeed
Termbase_spacesbelongsToManyBaseSpace
UserxprofilebelongsToXProfile
UserfollowshasManyFollow
UserfollowershasManyFollow
UserusermetahasManyUserMeta
UsermessageshasManyMessage
UserspacesbelongsToManyBaseSpace
UsercoursesbelongsToManyCourse
UsernotificationSubscriptionshasManyNotificationSubscription
UsernotificationPreferenceshasManyNotificationPreference
Userspace_pivotbelongsToSpaceUserPivot
Usernotification_recordshasManyNotificationSubscriber
Usercrm_contactbelongsToContact
Usercommunity_rolebelongsToMeta
UserMetauserbelongsToUser
XProfileuserbelongsToUser
XProfilecontacthasOneContact
XProfilespacesbelongsToManyBaseSpace
XProfilepostshasManyFeed
XProfilefollowshasManyFollow
XProfilefollowershasManyFollow
XProfilecommentshasManyComment
XProfilecoursesbelongsToManyCourse
XProfilespace_pivotbelongsToSpaceUserPivot
XProfilecommunity_rolebelongsToMeta

FluentCommunity developer documentation