Created
April 6, 2015 18:15
-
-
Save clowestab/b94e4c1c48db42bf4b91 to your computer and use it in GitHub Desktop.
Phalcon transaction issue
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
for ($i = 0; $i < 5; $i++) { | |
echo $i; | |
$transaction = $this->transactionManager->get(); | |
$pub = new Pub(); | |
$pub->setTransaction($transaction); | |
$pub->save(); | |
$feature = new PubFeature(); | |
$feature->setTransaction($transaction); | |
$feature->save(); | |
$transaction->commit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment