⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


a.lazzarini

Member Since 04 Jun 2019
Offline Last Active Aug 28 2019 12:31 PM
-----

Topics I've Started

Multiple Relation on the same table

09 July 2019 - 03:20 PM

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


Installation

04 June 2019 - 04:09 PM

Hello.

I install grocery crud enterperise on xamp with php 7.2  and set my cred-enterprise with my base_url

 

But always receive this message:

 

Ooooops, something went wrong! If you can see this message, this is probably a misconfiguration in Grocery CRUD Enterprise!

 

Regards

Andrea