Use array to store relations instead of object.