예제 #1
0
 /**
  * Add a link to shipment
  *
  * @param \XLite\Module\XC\CanadaPost\Model\Order\Parcel\Shipment\Link $newLink Link object
  *
  * @return void
  */
 public function addLink(\XLite\Module\XC\CanadaPost\Model\Order\Parcel\Shipment\Link $newLink)
 {
     $newLink->setShipment($this);
     $this->addLinks($newLink);
 }
 /**
  * {@inheritDoc}
  */
 public function prepareEntityBeforeCommit($type)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type));
     return parent::prepareEntityBeforeCommit($type);
 }