Created
November 18, 2011 17:04
-
-
Save robwilkerson/1377055 to your computer and use it in GitHub Desktop.
CakePHP: Testing the success of a non-atomic call to Model::saveAll()
This file contains 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( !in_array( false, Set::flatten( $this->Model->saveAll( $this->data['Model'], array( 'atomic' => false ) ) ) ) { | |
# Success code | |
} | |
else { | |
# Fail code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment