Normally this is as simple as $entity->$key = $value although more complicated transforms
can happen should a field type choose to override this method.
Note too that this will also be the default method called for an entity builder which is
designed to receive raw data to initialise an entity.