|
|
@@ -111,14 +111,20 @@ class SectionResolver |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
* /!\ Cache désactivé car génération d'une erreur du type : |
|
|
|
* "A new entity was found through the relationship 'App\Entity\Order\OrderShop#section' that was not configured to cascade persist operations for entity: Marché" |
|
|
|
* |
|
|
|
* Arrive sur les pages générées via le cache HTTP (CacheController.php) |
|
|
|
*/ |
|
|
|
if ($sectionCurrent) { |
|
|
|
$this->cacheSectionCurrent = $sectionCurrent; |
|
|
|
//$this->cacheSectionCurrent = $sectionCurrent; |
|
|
|
return $sectionCurrent; |
|
|
|
} elseif ($returnVisitedIfOutOfSection && $currentVisitedSection) { |
|
|
|
$this->cacheSectionVisited = $currentVisitedSection; |
|
|
|
//$this->cacheSectionVisited = $currentVisitedSection; |
|
|
|
return $currentVisitedSection; |
|
|
|
} elseif ($returnDefaultIfOutOfSections && $sectionDefault) { |
|
|
|
$this->cacheSectionDefault = $sectionDefault; |
|
|
|
//$this->cacheSectionDefault = $sectionDefault; |
|
|
|
return $sectionDefault; |
|
|
|
} |
|
|
|
|