<?php

///////////////////////////////////////////////////////////////////////////////////////////////////
// Define each field of the current Entity - for each field you can set the following keys: ///////
// 'mandatory', 'invisible' and 'validation'. Use the '_special' field key code to allow adding ///
// extra validations that are not checked automatically. //////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////


// name
$CFG['globalEntity']['::Department']['name']['mandatory']=true;
$CFG['globalEntity']['::Department']['name']['invisible']=false;
$CFG['globalEntity']['::Department']['name']['validation']= ['maxLength'=>100];
// code
$CFG['globalEntity']['::Department']['code']['mandatory']=false;
$CFG['globalEntity']['::Department']['code']['invisible']=false;
$CFG['globalEntity']['::Department']['code']['unique']=true;
$CFG['globalEntity']['::Department']['code']['validation']= ['maxLength'=>50];

?>