src/Kunstmaan/NodeBundle/Twig/NodeTwigExtension.php
public function getNodeTranslationByNodeId($nodeId, $lang)
    {
        $repo = $this->em->getRepository('KunstmaanNodeBundle:NodeTranslation');

        return $repo->getNodeTranslationByNodeIdQueryBuilder($nodeId, $lang);
    }
public function getNodeTranslationByNodeId($nodeId, $lang)
    {
        $repo = $this->em->getRepository('KunstmaanNodeBundle:NodeTranslation');

        return $repo->getNodeTranslationByNodeIdQueryBuilder($nodeId, $lang);
    }
public function getNodeTranslationByNodeId ( $ nodeId , $ lang ) { $ repo = $ this -> em -> getRepository ( 'KunstmaanNodeBundle:NodeTranslation' ) ; return $ repo -> getNodeTranslationByNodeIdQueryBuilder ( $ nodeId , $ lang ) ; }
Get the node translation object based on node id and language.

@param int    $nodeId
@param string $lang

@return NodeTranslation
Get the node translation object based on node id and language .