by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.

Free 30 day trial
Try it Now

By clicking you consent to share your profile with the developer

#1660 - How to load M2M (many to many) relationship table columns data from beans

Closed General Question created by so_removed_7 9 years ago
Hi currently I retreiving user bean and then loading security group relationship I want to use securitygroups_users tables fields How to get those relationship table fields from bean? current code : $userBean = BeanFactory::getBean ( 'Users' ); $users = $userBean->get_list ( "users.date_modified DESC", "users.date_modified < '" . $dateTimeOffset . "'", 0, 10 ); foreach ( $users ['list'] as $user ) { // load user security group if any $user->load_relationship ( $rel_name ); $userAirlineGroups = $user->$rel_name->getBeans (); **/****************I need here data of table securitygroups_users**********************/ **}
  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    9 years ago

  2. so_removed_7 member avatar

    so_removed_7

    9 years ago

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "The perfect solution for managing security. Very stable and easy to implement. Must-have add-on for every CE implementation!"

    Read More Reviews