Created
February 14, 2011 14:27
-
-
Save jmertic/825943 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (empty($bean->fetched_row['id']) { | |
// Do custom logic for only a newly created record | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.