Fixes one-to-many and many-to-many between user, company and membership models