|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
* /!\ 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) { |
|
|
if ($sectionCurrent) { |
|
|
$this->cacheSectionCurrent = $sectionCurrent; |
|
|
|
|
|
|
|
|
//$this->cacheSectionCurrent = $sectionCurrent; |
|
|
return $sectionCurrent; |
|
|
return $sectionCurrent; |
|
|
} elseif ($returnVisitedIfOutOfSection && $currentVisitedSection) { |
|
|
} elseif ($returnVisitedIfOutOfSection && $currentVisitedSection) { |
|
|
$this->cacheSectionVisited = $currentVisitedSection; |
|
|
|
|
|
|
|
|
//$this->cacheSectionVisited = $currentVisitedSection; |
|
|
return $currentVisitedSection; |
|
|
return $currentVisitedSection; |
|
|
} elseif ($returnDefaultIfOutOfSections && $sectionDefault) { |
|
|
} elseif ($returnDefaultIfOutOfSections && $sectionDefault) { |
|
|
$this->cacheSectionDefault = $sectionDefault; |
|
|
|
|
|
|
|
|
//$this->cacheSectionDefault = $sectionDefault; |
|
|
return $sectionDefault; |
|
|
return $sectionDefault; |
|
|
} |
|
|
} |
|
|
|
|
|
|