| IMO it's a bad idea. I think it is wrong to make getReference actually run a database query for determining the type. When people use getReference they are doing it to avoid the query. If the actual type isn't known but is important, the entity should be fetched via find. |