fix typo
This commit is contained in:
@@ -51,13 +51,12 @@ class Customer extends BaseCustomer
|
|||||||
|
|
||||||
public function preInsert(\PropelPDO $con = null)
|
public function preInsert(\PropelPDO $con = null)
|
||||||
{
|
{
|
||||||
$customeRef = new CustomRefEvent($this);
|
$customerRef = new CustomRefEvent($this);
|
||||||
if (!is_null($this->dispatcher)) {
|
if (!is_null($this->dispatcher)) {
|
||||||
$customeRef = new CustomRefEvent($this);
|
$this->dispatcher->dispatch("customer.creation.customref", $customerRef);
|
||||||
$this->dispatcher->dispatch("customer.creation.customref", $customeRef);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setRef($customeRef->hasRef()? $customeRef->getRef() : $this->generateRef());
|
$this->setRef($customerRef->hasRef()? $customerRef->getRef() : $this->generateRef());
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user