Adds an object to the category.
1 string id
the category. Can be a table containing category IDs.
2 entity object
the object to add.