introduced field_attributes shortcuts and added method on_base() to all processor classes
This commit is contained in:
@@ -17,10 +17,11 @@ struct LdapImportSettings : core::Model {
|
||||
|
||||
template<typename Operator>
|
||||
void process( Operator& op ) {
|
||||
namespace field = matador::access;
|
||||
using namespace matador;
|
||||
namespace field = access;
|
||||
field::process( op, *matador::base_class<Model>( this ) );
|
||||
field::has_one(op, "ldap_user_directory", ldap_user_directory, matador::utils::CascadeAllFetchLazy);
|
||||
field::attribute( op, "default_role", default_role, 511 );
|
||||
field::has_one(op, "ldap_user_directory", ldap_user_directory, utils::CascadeAllFetchLazy);
|
||||
field::attribute( op, "default_role", default_role, VarChar511 );
|
||||
field::attribute( op, "sync_interval", sync_interval );
|
||||
field::attribute( op, "network_timeout", network_timeout );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user