瀏覽代碼

Adaptation Distribution OrderShopModel et SectionSolver

packProduct
Guillaume 3 年之前
父節點
當前提交
353d53a988
共有 2 個檔案被更改,包括 1 行新增14 行删除
  1. +1
    -1
      Model/Order/OrderShopModel.php
  2. +0
    -13
      Solver/Section/SectionSolver.php

+ 1
- 1
Model/Order/OrderShopModel.php 查看文件

@@ -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 查看文件

@@ -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;
}
}

Loading…
取消
儲存