/**
  * {@inheritDoc}
  */
 public function prepareEntityBeforeCommit($type)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type));
     return parent::prepareEntityBeforeCommit($type);
 }
Example #2
0
 /**
  * Add a link 
  *
  * @param \XLite\Module\XC\CanadaPost\Model\ProductsReturn\Link $newLink Link model
  *
  * @return void
  */
 public function addLink(\XLite\Module\XC\CanadaPost\Model\ProductsReturn\Link $newLink)
 {
     $newLink->setReturn($this);
     $this->addLinks($newLink);
 }