src/Phlexible/Bundle/ElementBundle/Controller/LocksController.php
public function deletemyAction()
    {
        $uid = $this->getUser()->getId();

        $lockManager = $this->get('phlexible_element.element_lock_manager');
        $myLocks = $lockManager->findBy(['userId' => $uid]);

        foreach ($myLocks as $lock) {
            $lockManager->deleteLock($lock);
        }

        return new ResultResponse(true, 'My locks released.');
    }
public function deletemyAction()
    {
        $uid = $this->getUser()->getId();

        $lockManager = $this->get('phlexible_element.element_lock_manager');
        $myLocks = $lockManager->findBy(['userId' => $uid]);

        foreach ($myLocks as $lock) {
            $lockManager->deleteLock($lock);
        }

        return new ResultResponse(true, 'My locks released.');
    }
public function deletemyAction ( ) { $ uid = $ this -> getUser ( ) -> getId ( ) ; $ lockManager = $ this -> get ( 'phlexible_element.element_lock_manager' ) ; $ myLocks = $ lockManager -> findBy ( [ 'userId' => $ uid ] ) ; foreach ( $ myLocks as $ lock ) { $ lockManager -> deleteLock ( $ lock ) ; } return new ResultResponse ( true , 'My locks released.' ) ; }
Delete my locks.

@return ResultResponse
@Route("/deletemy", name="locks_delete_my")
Delete my locks .