Skip to content

Instantly share code, notes, and snippets.

@justinpfister
Created March 19, 2014 02:48
Show Gist options
  • Select an option

  • Save justinpfister/9634619 to your computer and use it in GitHub Desktop.

Select an option

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