Przeglądaj źródła

Adaptation Distribution OrderShopModel et SectionSolver

packProduct
Guillaume 3 lat temu
rodzic
commit
353d53a988
2 zmienionych plików z 1 dodań i 14 usunięć
  1. +1
    -1
      Model/Order/OrderShopModel.php
  2. +0
    -13
      Solver/Section/SectionSolver.php

+ 1
- 1
Model/Order/OrderShopModel.php Wyświetl plik

@@ -117,7 +117,7 @@ abstract class OrderShopModel extends AbstractLightEntity implements FilterSecti

/**
* @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Distribution\DistributionInterface")
* @ORM\JoinColumn(nullable=false)
* @ORM\JoinColumn(nullable=true)
*/
protected $distribution;


+ 0
- 13
Solver/Section/SectionSolver.php Wyświetl plik

@@ -12,17 +12,4 @@ class SectionSolver
return $section->getDevAlias() == SectionModel::DEVALIAS_COMMON;
}

// @TODO : à voir si pertinent
public function getNewsletter(SectionInterface $section)
{
$newsletters = $section->getNewsletters();

foreach ($newsletters as $newsletter) {
if ($newsletter->getIsMain()) {
return $newsletter;
}
}

return false;
}
}

Ładowanie…
Anuluj
Zapisz