Bundle/ViewReferenceBundle/Connector/ViewReferenceRepository.php
public function getOneReferenceByParameters(array $parameters, $transform = true, $keepChildren = false)
    {
        $result = $this->getReferencesByParameters($parameters, $transform, $keepChildren);
        if (count($result)) {
            return $result[0];
        }
    }
public function getOneReferenceByParameters(array $parameters, $transform = true, $keepChildren = false)
    {
        $result = $this->getReferencesByParameters($parameters, $transform, $keepChildren);
        if (count($result)) {
            return $result[0];
        }
    }
public function getOneReferenceByParameters ( array $ parameters , $ transform = true , $ keepChildren = false ) { $ result = $ this -> getReferencesByParameters ( $ parameters , $ transform , $ keepChildren ) ; if ( count ( $ result ) ) { return $ result [ 0 ] ; } }
Get first reference matching with parameters.

@param $parameters
@param bool|true  $transform
@param bool|false $keepChildren

@return mixed
Get first reference matching with parameters .