$this->entityManager->create($userMerchant); | $this->entityManager->create($userMerchant); | ||||
$this->entityManager->flush(); | $this->entityManager->flush(); | ||||
}elseif(!$userMerchant->getActive()){ | |||||
$userMerchant->setActive(true); | |||||
$this->entityManager->update($userMerchant); | |||||
$this->entityManager->flush(); | |||||
} | } | ||||
return $userMerchant; | return $userMerchant; |
{{ field.value|sov_trans_admin_choice('deliveryType', 'OrderShop') }} | |||||
{% if field.value is not null %} | |||||
{{ field.value|sov_trans_admin_choice('deliveryType', 'OrderShop') }} | |||||
{% else %} | |||||
Pas de livraison | |||||
{% endif %} |