saveOrUpdate

Update the value if it's already in the database, otherwise insert it.

This relies on newly created items not having IDs. This might not work well for stuff that's got complex creation steps; in that case, you need to manually call insert.

void
saveOrUpdate
(
T
)
(
ref T val
)

Meta