CRM-14758 fix - API ( contact, create ) does not always create related m...

...embership

https://issues.civicrm.org/jira/browse/CRM-14758