Fix associations with category, product and content

+---------------+------+
| Q             | A    |
| ---           | ---  |
| Bug fix?      | y    |
| New feature?  | n    |
| BC breaks?    | n    |
| Deprecations? | n    |
| Tests pass?   | y    |
| Fixed tickets | #186 |
| License       | GPL  |
| Doc PR        |      |
+---------------+------+