src/Kunstmaan/NodeBundle/Repository/NodeTranslationRepository.php
public function getNodeTranslationFor(HasNodeInterface $hasNode)
    {
        /* @var NodeVersion $nodeVersion */
        $nodeVersion = $this->getEntityManager()
            ->getRepository('KunstmaanNodeBundle:NodeVersion')
            ->getNodeVersionFor($hasNode);

        if (!is_null($nodeVersion)) {
            return $nodeVersion->getNodeTranslation();
        }

        return null;
    }
public function getNodeTranslationFor(HasNodeInterface $hasNode)
    {
        /* @var NodeVersion $nodeVersion */
        $nodeVersion = $this->getEntityManager()
            ->getRepository('KunstmaanNodeBundle:NodeVersion')
            ->getNodeVersionFor($hasNode);

        if (!is_null($nodeVersion)) {
            return $nodeVersion->getNodeTranslation();
        }

        return null;
    }
public function getNodeTranslationFor ( HasNodeInterface $ hasNode ) { /* @var NodeVersion $nodeVersion */ $ nodeVersion = $ this -> getEntityManager ( ) -> getRepository ( 'KunstmaanNodeBundle:NodeVersion' ) -> getNodeVersionFor ( $ hasNode ) ; if ( ! is_null ( $ nodeVersion ) ) { return $ nodeVersion -> getNodeTranslation ( ) ; } return null ; }
Get the node translation for a node

@param HasNodeInterface $hasNode

@return NodeTranslation
Get the node translation for a node