Browse Source

[Backend] Choix de section dans produit

feature/module_traiteur_v1
Fab 4 years ago
parent
commit
ac2f04b1e2
2 changed files with 8 additions and 1 deletions
  1. +7
    -1
      ShopBundle/Model/Section.php
  2. +1
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml

+ 7
- 1
ShopBundle/Model/Section.php View File

@@ -5,11 +5,12 @@ namespace Lc\ShopBundle\Model;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Lc\ShopBundle\Context\FilterMerchantInterface;

/**
* @ORM\MappedSuperclass()
*/
class Section extends AbstractDocumentEntity
abstract class Section extends AbstractDocumentEntity implements FilterMerchantInterface
{
/**
* @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\MerchantInterface")
@@ -43,6 +44,11 @@ class Section extends AbstractDocumentEntity
$this->orderShops = new ArrayCollection();
}

public function __toString()
{
return $this->getTitle();
}

public function getCycle(): ?string
{
return $this->cycle;

+ 1
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml View File

@@ -301,6 +301,7 @@ field:
displayTotalWeightInPurchaseOrder: Afficher le poids total dans les bons de commande

ProductFamily:
sections: Espace où le produit est vendu
taxRateInherited: Utiliser la TVA par défaut
activeProducts: Activer les déclinaisons
productsType: Type de déclinaisons

Loading…
Cancel
Save