introduced field_attributes shortcuts and added method on_base() to all processor classes
This commit is contained in:
@@ -30,7 +30,7 @@ struct flight {
|
||||
using namespace matador::utils;
|
||||
field::primary_key(op, "id", id);
|
||||
field::belongs_to(op, "airplane_id", plane, {utils::cascade_type::All, fetch_type::Eager});
|
||||
field::attribute(op, "pilot_name", pilot_name, 255);
|
||||
field::attribute(op, "pilot_name", pilot_name, VarChar255);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user