Jump to content


set relation question

set relation

  • Please log in to reply
No replies to this topic

#1 pochtaliot

pochtaliot

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 10 August 2017 - 07:02 PM

Hi, i have an issue with set relation method

 

I have tables: departments, directions, positions, employees. Additionally i have aggregation table employee_department where i'm adding new employee based on prev dictionaries.

 

Now, i have a table were admins assigning to employee_department record id. I want to relate and concatenate department, direction, position and name of the record in employee_department table. But those values are in dictionaries, in employee_department i have only it's ids. Can i do something like this?

 

This gives my only the ids of employee_department record. And want to get its name or title values from related dictionaries

$crud->set_relation('id_ed','employee_department','{id_employee}-{ed_id_dep}-{ed_id_jobdir}-{ed_id_pos}');






Also tagged with one or more of these keywords: set relation

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users