adjust work project to the current codebase
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "../core/Model.hpp"
|
||||
|
||||
#include "matador/utils/base_class.hpp"
|
||||
#include "matador/utils/foreign_attributes.hpp"
|
||||
|
||||
namespace work::models::jobs {
|
||||
struct Job;
|
||||
@@ -16,7 +17,7 @@ struct Payload : core::Model {
|
||||
namespace field = matador::access;
|
||||
field::process( op, *matador::base_class<Model>( this ) );
|
||||
field::attribute( op, "type", type, 255 );
|
||||
field::belongs_to( op, "job", job, matador::utils::default_foreign_attributes );
|
||||
field::belongs_to( op, "job", job, matador::utils::CascadeAllFetchLazy );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user