Warning: session_start(): open(/var/lib/php/sessions/sess_f90mrfbvkf9hras1cn4cgj8v4i, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static void smartSet(Field f, O o, O value) throws Exception {
try {
f.set(o, value);
} catch (Exception e) {
Class type = f.getType();
// take care of common case (long to int)
if (type == int.class && value instanceof Long)
value = ((Long) value).intValue();
if (type == bool.class && value instanceof S)
value = isTrueOrYes(value/S);
if (type == LinkedHashMap.class && value instanceof Map)
ret with f.set(o, asLinkedHashMap((Map) value));
ifclass Concept
try {
if (f.getType() == Concept.Ref.class) {
f.set(o, ((Concept) o).new Ref((Concept) value));
ret;
}
if (o instanceof Concept.Ref) {
f.set(o, ((Concept.Ref) o).get());
ret;
}
} catch {}
endif
throw e;
}
}