Browse Source

Adaptation Distribution OrderShopModel et SectionSolver

packProduct
Guillaume 3 years ago
parent
commit
353d53a988
2 changed files with 1 additions and 14 deletions
  1. +1
    -1
      Model/Order/OrderShopModel.php
  2. +0
    -13
      Solver/Section/SectionSolver.php

+ 1
- 1
Model/Order/OrderShopModel.php View File



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



+ 0
- 13
Solver/Section/SectionSolver.php View File

return $section->getDevAlias() == SectionModel::DEVALIAS_COMMON; 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…
Cancel
Save