Hi Everyone!
I have a table that has two fields with the same setRelation Value reference.
The table structure is:
Table 1: tbldata
Fields:
d_id
d_Data
d_EncodedBy
d_ModifiedBy
Table 2: tblperson
Fields:
p_id
p_FirstName
p_LastName
p_Type
Both f_EncodedBy and f_ModifiedBy of table 1 should be referencing the table 2 through setRelation by:
$crud->setRelation('d_EncodedBy', 'tblperson', '{p_FirstName} {p_LastName}', ['p_Type <> ?'=>'1']); $crud->setRelation('d_ModifiedBy', 'tblperson', '{p_FirstName} {p_LastName}', ['p_Type <> ?'=>'1']);
But an error is displayed which is as follows: