bind_<T extends Entity> function
T
bind_<T extends Entity>()
Binds the data
to the entify with the given oid
.
If the entity doesn't exists, it will instantiate one.
It is a utility for implementation.
Implementation
T bind_<T extends Entity>(Access access, String oid,
T newInstance(String oid), Map data, Iterable<String>? fields) {
final (entity, done, fds) = _fetch<T>(access, newInstance(oid), fields);
return done ? entity: read_(access, entity, data, fds);
}