Skip to content

Instantly share code, notes, and snippets.

@justinpfister
Created March 19, 2014 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinpfister/9634619 to your computer and use it in GitHub Desktop.
Save justinpfister/9634619 to your computer and use it in GitHub Desktop.
<?php
public function prePersist($transaction)
{
$this->preUpdate($transaction);
}
public function preUpdate($transaction)
{
$transaction->setEntries($transaction->getEntry());
foreach($transaction->getEntry() as $entry){
$entry->setTransactionid( $transaction );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment