private function pageLocalizationChange(PageLocalization $localization, $force = false)
	{
		$master = $localization->getMaster();
		$pageLocalizationEntity = PageLocalization::CN();

		$dql = "SELECT l FROM $pageLocalizationEntity l JOIN l.master m
				WHERE m.left >= :left
				AND m.right <= :right
				AND l.locale = :locale
				ORDER BY m.left";

		$pageLocalizations = $this->em->createQuery($dql)
				->setParameters(array(
					'left' => $master->getLeftValue(),
					'right' => $master->getRightValue(),
					'locale' => $localization->getLocale(),
				))
				->getResult();

		foreach (array($localization) as $pageLocalization) {
			$this->generatePath($pageLocalization, $force);
		}
	}
private function pageLocalizationChange(PageLocalization $localization, $force = false)
	{
		$master = $localization->getMaster();
		$pageLocalizationEntity = PageLocalization::CN();

		$dql = "SELECT l FROM $pageLocalizationEntity l JOIN l.master m
				WHERE m.left >= :left
				AND m.right <= :right
				AND l.locale = :locale
				ORDER BY m.left";

		$pageLocalizations = $this->em->createQuery($dql)
				->setParameters(array(
					'left' => $master->getLeftValue(),
					'right' => $master->getRightValue(),
					'locale' => $localization->getLocale(),
				))
				->getResult();

		foreach (array($localization) as $pageLocalization) {
			$this->generatePath($pageLocalization, $force);
		}
	}
private function pageLocalizationChange ( PageLocalization $ localization , $ force = false ) { $ master = $ localization -> getMaster ( ) ; $ pageLocalizationEntity = PageLocalization :: CN ( ) ; $ dql = "SELECT l FROM $pageLocalizationEntity l JOIN l.master m
				WHERE m.left >= :left
				AND m.right <= :right
				AND l.locale = :locale
				ORDER BY m.left" ; $ pageLocalizations = $ this -> em -> createQuery ( $ dql ) -> setParameters ( array ( 'left' => $ master -> getLeftValue ( ) , 'right' => $ master -> getRightValue ( ) , 'locale' => $ localization -> getLocale ( ) , ) ) -> getResult ( ) ; foreach ( array ( $ localization ) as $ pageLocalization ) { $ this -> generatePath ( $ pageLocalization , $ force ) ; } }
Recurse path regeneration for the localization and all its descendants
@param PageLocalization $localization
@param boolean $force
Recurse path regeneration for the localization and all its descendants