I would like to know if it is possible to use setRelation() with the main table pk several times.
Suppose I have:
- A
usertable with ‘id’ as pk. - A table named
auth_identitiescontaining user’semailassociated with every user viauser_idfk. - Another table named
auth_groups_userscontains the users’group, again using auser_idfk.
I would like to show both columns, email and group, along with the main user table fields.
Problem is when I use something like this:
$crud->setRelation('id', 'auth_identities', 'email')
$crud->setRelation('id', 'auth_groups_users', 'group')
Only the group column is shown in place of id.
How can I show two or more columns always having the pk id as $fieldName first parameter?
Any workaround (without relying on views)?
TIA.