raise if object[:id] is nil