Hi i need to setRelation on same two table with different where like this:
$crud->setRelation('aimm_tipologia_code', 'tbl_dati_sistema', 'tbds_destab_txt', ['tbds_tblname_txt' => 'TIP_IMMOB']);
$crud->setRelation('aimm_subtipologia_code', 'tbl_dati_sistema', 'tbds_destab_txt', ['tbds_tblname_txt' => 'SUBTIP_IMMOB']);
$crud->setRelation('aimm_situazione_code', 'tbl_dati_sistema', 'tbds_destab_txt', ['tbds_tblname_txt' => 'SIT_IMMOB']);
But i receive thi serror:
Message: SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias: 'tbl_dati_sistema'
I'm using grocery crud enterprise 2.7.6
Regards
Andrea