Use object_get in Collection to support pivot tables

Signed-off-by: Daniel Bondergaard <danielboendergaard@gmail.com>