fiw typo in schema model

This commit is contained in:
Manuel Raynaud
2013-07-03 15:05:08 +02:00
parent 89ca995f29
commit 0d1e0c6a2c
5 changed files with 7 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ class Customer extends BaseCustomer
public function setPassword($password)
{
\Thelia\Log\Tlog::getInstance()->debug($password);
if ($this->isNew() && ($password === null || trim($password) == "")) {
throw new InvalidArgumentException("customer password is mandatory on creation");
}