1 Reason Insurance

Leadership Through Service

  • About
    • Meet Our Agents
    • Partner Insurance Companies
  • Personal Insurance
    • Car Insurance Quote for Personal Auto
    • Boat Insurance
    • Home Owners Insurance Application
    • Life Insurance Quotes
    • Motorcycle Insurance
    • Personal Umbrella Insurance
    • Renters Insurance
    • RV Camper Insurance
    • Snowmobile Insurance
  • Business Insurance
    • Commercial Auto Insurance
    • What is General Liability Insurance
    • Rental or Vacant Properties
    • Workers Compensation in Wisconsin
  • Blog
  • Contact 1 Reason Insurance
    • Contribute As Guest Author
Home > SuiteCRM Insurance CRM > Warning: Multiple links found for relationship – Suitecrm

Warning: Multiple links found for relationship – Suitecrm

Posted on: February 12, 2019 By: robert

From Github – https://github.com/salesagility/SuiteCRM/issues/6507

Fixing:
change to /data/Relationships/M2MRelationship.php to downgrade this to a warning so it wouldn’t fill the logs (if log level at Error). This is not an upgrade-safe change.

~ Line 90:

$GLOBALS['log']->warn("Warning: Multiple links found for relationship {$this->name} within module {$module}");             
//$GLOBALS['log']->error("Warning: Multiple links found for relationship {$this->name} within module {$module}");

Fix is from suitecrm https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/12382-help-with-log-errors-multiple-links-found-for-relationship

This seems to come from M2MRelationship.php, which calls getLinkFieldForRelationship from VardefManager.php, which if it isn’t in cache calls getLinkFieldsforModule from the same file.

getLinkFieldsforModule, if I read correctly, returns each $dictionary entry where ‘type’ == ‘link’ and ‘relationship’ key is defined (and not empty). I believe, that if it finds multiple entries, that meet that criteria, the error is thrown. You’ll notice in my accounts<->contacts example, the first and third entries that are created are both ‘type’ == ‘link’ and both have ‘relationship’ key defined.

$dictionary["Account"]["fields"]["accounts_contacts_1"] = array (
  'name' => 'accounts_contacts_1',
  'type' => 'link',
  'relationship' => 'accounts_contacts_1',
  'source' => 'non-db',
  'module' => 'Contacts',
  'bean_name' => 'Contact',
  'vname' => 'LBL_ACCOUNTS_CONTACTS_1_FROM_CONTACTS_TITLE',
  'id_name' => 'accounts_contacts_1contacts_idb',
);
$dictionary["Account"]["fields"]["accounts_contacts_1_name"] = array (
  'name' => 'accounts_contacts_1_name',
  'type' => 'relate',
  'source' => 'non-db',
  'vname' => 'LBL_ACCOUNTS_CONTACTS_1_FROM_CONTACTS_TITLE',
  'save' => true,
  'id_name' => 'accounts_contacts_1contacts_idb',
  'link' => 'accounts_contacts_1',
  'table' => 'contacts',
  'module' => 'Contacts',
  'rname' => 'name',
  'db_concat_fields' =>
  array (
    0 => 'first_name',
    1 => 'last_name',
  ),
);
$dictionary["Account"]["fields"]["accounts_contacts_1contacts_idb"] = array (
  'name' => 'accounts_contacts_1contacts_idb',
  'type' => 'link',
  'relationship' => 'accounts_contacts_1',
  'source' => 'non-db',
  'reportable' => false,
  'side' => 'left',
  'vname' => 'LBL_ACCOUNTS_CONTACTS_1_FROM_CONTACTS_TITLE',
);

Whereas, in modules/Accounts/vardefs.php, contacts is simply defined with one entry:

        'contacts' => array(
            'name' => 'contacts',
            'type' => 'link',
            'relationship' => 'accounts_contacts',
            'module' => 'Contacts',
            'bean_name' => 'Contact',
            'source' => 'non-db',
            'vname' => 'LBL_CONTACTS',
        ),

Now I assume some of that extra code is necessary, but it also seems to generate the error in the logs

Categories: SuiteCRM Insurance CRM

1Reason Agencies

What clients have to say:

Mike T. "I started a business last year and Robert responded to my inquiries immediately, and was extremely helpful and knowledgeable as to the type of insurance coverages I would need to get started. Now its been a year and he now carries All of my coverages! Absolutely the most hands on agent I've ever worked with but hands down the friendliest! I can call him anytime and never feel rushed and not only that but he responded while on a family vacation. I believe in relationships in business and so does Robert by the way he treats his customers. I have a true friend in the business, thank you Robert!"


Lynn R. "Bob is very knowledgeable and has always done a great job explaining different aspects of coverage. He is very accessible and looks out for what is best for the consumer. We highly recommend him!


Justin T. "Excellent agent, always available for answers to insurance related questions. Bob, is the person most people strive to become. Without a doubt, a great person!"


Sebastian T. "I can not begin to tell you how pleased I am with 1 Reason Insurance ! Their responding services is friendly and complete. For the services my company offers to the public it is sure nice to know that we are covered for a reasonable fee. Just having (1 R I ) 1 Reason Insurance there is such piece of mind ! Their insurance plans are strait to the point and easy to understand.
Thanks for the great service 1 Reason Insurance !"


Jeff H. "Very nice and cares about the customer! He was literally the reason why i chose him over other companies for my insurance"

Categories

  • Bonds
    • Performance Bond
  • Bookkeeping
    • Business Taxes
  • Business Marketing
    • Webhosting
  • Car Insurance
  • Commercial Auto
  • Commercial Insurance
  • Court Cases
  • Cyber Liability Insurance
  • Employment Opportunities
  • Employment Practices
  • Flood Insurance
  • Home Ownership
  • Homeowner's Insurance
  • Insurance Companies
    • Insurance News
  • Insurance Terms
  • Investing
    • Finance & Insurance News
  • Life Insurance
  • Non Emergency Medical Transportation
  • Payroll
  • Pinewood Derby
  • Real Estate News
  • Rental Property Insurance
  • Retirement & Estate Planning
  • RV Insurance
  • Starting A Business
  • Stock Dividends
  • SuiteCRM Insurance CRM
  • Tips & Advice
  • Travel
  • Uncategorized
  • Worker's Compensation

Recent Posts

  • Using ChatGPT Can Help Your Business Grow By Helping You Write SEO Friendly Content For Your Website
  • Buying Homeowners Insurance In Wisconsin
  • Starting a Michigan Taxi or Non Emergency Medical Transportation Business Is Expensive Because of Regulations
  • Armada Hoffler Announces Quarterly Dividend
  • LGI Homes Reports October 2022 Home Closings
  • Regency Centers Reports Third Quarter 2022 Results
  • Global System Dynamics, Inc. Announces Sponsor Funding of Initial Three-Month Extension to Complete its Initial Business Combination
  • Opendoor Announces Third Quarter of 2022 Financial Results