jamierumbelow/codeigniter-base-model — pull request #70 by JustinBusschau (2012-11-01 20:38:55+00:00)
Title: Replace record

A simple function to UPDATE a record if it exists or INSERT it if it does not. Unlike the native MySQL REPLACE statement, this does a check before committing changes and does NOT do a DELETE / INSERT.