Doctrine_Record::obtainReference PHP Méthode

obtainReference() public méthode

gets a related component and fails if it does not exist
public obtainReference ( string $name )
$name string
    public function obtainReference($name)
    {
        if (isset($this->_references[$name])) {
            return $this->_references[$name];
        }
        throw new Doctrine_Record_Exception("Unknown reference {$name}");
    }