/** * Check order detail name * * @param \XLite\Model\OrderDetail $detail Detail * @param string $name Name * * @return boolean */ public function checkDetailName(\XLite\Model\OrderDetail $detail, $name) { return $detail->getName() === $name; }
/** * {@inheritDoc} */ public function prepareEntityBeforeCommit($type) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type)); return parent::prepareEntityBeforeCommit($type); }