That implementation won’t work for polymorphic entities, but we can specially handle non-polymorphic proxies this way.