protected function unlockPage()
	{
		$this->isPostRequest();

		$localization = $this->getPageLocalization();

		if ($localization->isLocked()) {

			$lock = $localization->getLock();

			$entityManager = $this->getEntityManager();

			$localization->setLock(null);
			$entityManager->remove($lock);

			$entityManager->flush();
		}
	}
protected function unlockPage()
	{
		$this->isPostRequest();

		$localization = $this->getPageLocalization();

		if ($localization->isLocked()) {

			$lock = $localization->getLock();

			$entityManager = $this->getEntityManager();

			$localization->setLock(null);
			$entityManager->remove($lock);

			$entityManager->flush();
		}
	}
protected function unlockPage ( ) { $ this -> isPostRequest ( ) ; $ localization = $ this -> getPageLocalization ( ) ; if ( $ localization -> isLocked ( ) ) { $ lock = $ localization -> getLock ( ) ; $ entityManager = $ this -> getEntityManager ( ) ; $ localization -> setLock ( null ) ; $ entityManager -> remove ( $ lock ) ; $ entityManager -> flush ( ) ; } }
Removes page lock if exists
Removes page lock if exists