src/Kunstmaan/NodeBundle/EventListener/NodeTranslationListener.php
private function updateUrl(NodeTranslation $nodeTranslation, EntityManagerInterface $em)
    {
        $result = $this->ensureUniqueUrl($nodeTranslation, $em);

        if ($result) {
            return $nodeTranslation;
        }

        $this->logger->info(
            sprintf('Found NT %s needed NO change', $nodeTranslation->getId())
        );

        return false;
    }
private function updateUrl(NodeTranslation $nodeTranslation, EntityManagerInterface $em)
    {
        $result = $this->ensureUniqueUrl($nodeTranslation, $em);

        if ($result) {
            return $nodeTranslation;
        }

        $this->logger->info(
            sprintf('Found NT %s needed NO change', $nodeTranslation->getId())
        );

        return false;
    }
private function updateUrl ( NodeTranslation $ nodeTranslation , EntityManagerInterface $ em ) { $ result = $ this -> ensureUniqueUrl ( $ nodeTranslation , $ em ) ; if ( $ result ) { return $ nodeTranslation ; } $ this -> logger -> info ( sprintf ( 'Found NT %s needed NO change' , $ nodeTranslation -> getId ( ) ) ) ; return false ; }
Update the url for a nodetranslation

@param NodeTranslation        $nodeTranslation The node translation
@param EntityManagerInterface $em              The entity manager

@return NodeTranslation|bool returns the node when all is well because it has to be saved
Update the url for a nodetranslation