Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Phalcon transaction issue
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
You can’t perform that action at this time.