Lightweight 0.20260921.0
Loading...
Searching...
No Matches
Lightweight::HasOneThrough< OtherTable, ThroughSpec, TheOwnerSelector, TheThroughSelector >::Loader Struct Reference

Carries the deferred load, installed by the DataMapper. More...

#include <HasOneThrough.hpp>

Public Attributes

std::function< RelationResult< std::shared_ptr< ReferencedRecord > >()> loadReference {}
 Loads the referenced record: RelationError::NotFound when there is none.
 

Detailed Description

template<typename OtherTable, typename ThroughSpec, auto TheOwnerSelector = AutoDetectRelation, auto TheThroughSelector = AutoDetectRelation>
struct Lightweight::HasOneThrough< OtherTable, ThroughSpec, TheOwnerSelector, TheThroughSelector >::Loader

Carries the deferred load, installed by the DataMapper.

Definition at line 147 of file HasOneThrough.hpp.

Member Data Documentation

◆ loadReference

template<typename OtherTable , typename ThroughSpec , auto TheOwnerSelector = AutoDetectRelation, auto TheThroughSelector = AutoDetectRelation>
std::function<RelationResult<std::shared_ptr<ReferencedRecord> >()> Lightweight::HasOneThrough< OtherTable, ThroughSpec, TheOwnerSelector, TheThroughSelector >::Loader::loadReference {}

Loads the referenced record: RelationError::NotFound when there is none.

Definition at line 150 of file HasOneThrough.hpp.


The documentation for this struct was generated from the following file: