{"id":309,"date":"2019-11-01T14:09:47","date_gmt":"2019-11-01T14:09:47","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/maintenance\/amount-of-associations-on-entity\/"},"modified":"2020-02-24T11:45:03","modified_gmt":"2020-02-24T11:45:03","slug":"amountassociations","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/maintainability\/amountassociations","title":{"rendered":"Entity should have a maximum of N associations"},"content":{"rendered":"\n<table class=\"wp-block-table\"><tbody><tr><td>\n  Checks if entity has too many\n  associations\n  <\/td><\/tr><tr><td>\n  Code size is an important indicator for\n  code complexity and hence maintainability. Too many associations indicate it\n  is difficult in the future to make changes to the architecture for this\n  entity\n  <\/td><\/tr><tr><td>\n  Add an integer value that constrains the\n  max amount of associations per entity.\n  <\/td><\/tr><\/tbody><\/table>\n","protected":false},"featured_media":0,"parent":98,"menu_order":8,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-309","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/309"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=309"}],"version-history":[{"count":2,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/309\/revisions"}],"predecessor-version":[{"id":871,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/309\/revisions\/871"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/98"}],"next":[{"title":"Entity should have a maximum of N attributes","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/maintainability\/attributeamount","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/315"}],"prev":[{"title":"URL endpoints should not be hard-coded","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/maintainability\/staticurlendpoints","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/339"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=309"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}