for entity objects using ArrayAccess, check for offsetGet method to access it's property (for Eloquent).
composite ID is not really supported. check for array of ids.