Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created February 14, 2011 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jmertic/825943 to your computer and use it in GitHub Desktop.
Save jmertic/825943 to your computer and use it in GitHub Desktop.
if (empty($bean->fetched_row['id']) {
// Do custom logic for only a newly created record
}
@patpawlowski
Copy link

Hey John, I think this gist might be older than me but there's a missing closing paren in line 1 that might be confusing to some.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment