Bundle/CoreBundle/Entity/View.php
public function setReference(ViewReference $reference = null, $locale = null)
    {
        $locale = $locale ?: $this->getCurrentLocale();
        $this->references[$locale] = $reference;

        return $this;
    }
public function setReference(ViewReference $reference = null, $locale = null)
    {
        $locale = $locale ?: $this->getCurrentLocale();
        $this->references[$locale] = $reference;

        return $this;
    }
public function setReference ( ViewReference $ reference = null , $ locale = null ) { $ locale = $ locale ? : $ this -> getCurrentLocale ( ) ; $ this -> references [ $ locale ] = $ reference ; return $ this ; }
Set reference.

@param ViewReference $reference
@param string        $locale

@return $this
Set reference .