private function pageChange(Page $master, $force = false)
	{
		// Run for all children
		$pageLocalizationEntity = PageLocalization::CN();

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

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

		$changedLocalizations = array();

		foreach ($pageLocalizations as $pageLocalization) {
			$changedLocalization = $this->generatePath($pageLocalization, $force);
			if ( ! is_null($changedLocalization)) {
				$changedLocalizations[] = $changedLocalization;
			}
		}

		return $changedLocalizations;
	}
private function pageChange(Page $master, $force = false)
	{
		// Run for all children
		$pageLocalizationEntity = PageLocalization::CN();

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

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

		$changedLocalizations = array();

		foreach ($pageLocalizations as $pageLocalization) {
			$changedLocalization = $this->generatePath($pageLocalization, $force);
			if ( ! is_null($changedLocalization)) {
				$changedLocalizations[] = $changedLocalization;
			}
		}

		return $changedLocalizations;
	}
private function pageChange ( Page $ master , $ force = false ) { // Run for all children $ pageLocalizationEntity = PageLocalization :: CN ( ) ; $ dql = "SELECT l FROM $pageLocalizationEntity l JOIN l.master m
				WHERE m.left >= :left
				AND m.right <= :right
				ORDER BY l.locale, m.left" ; $ pageLocalizations = $ this -> em -> createQuery ( $ dql ) -> setParameters ( array ( 'left' => $ master -> getLeftValue ( ) , 'right' => $ master -> getRightValue ( ) , ) ) -> getResult ( ) ; $ changedLocalizations = array ( ) ; foreach ( $ pageLocalizations as $ pageLocalization ) { $ changedLocalization = $ this -> generatePath ( $ pageLocalization , $ force ) ; if ( ! is_null ( $ changedLocalization ) ) { $ changedLocalizations [ ] = $ changedLocalization ; } } return $ changedLocalizations ; }
Called when page structure is changed
@param Page $master
@return array of changed localizations
Called when page structure is changed