public function getAlias()
    {
        if (!isset($this->alias)) {
            $options = $this->getOptions();
            if (isset($options['alias'])) {
                $this->alias = $options['alias'];
            } else {
                $this->alias = null;
            }
        }

        return $this->alias;
    }
public function getAlias()
    {
        if (!isset($this->alias)) {
            $options = $this->getOptions();
            if (isset($options['alias'])) {
                $this->alias = $options['alias'];
            } else {
                $this->alias = null;
            }
        }

        return $this->alias;
    }
public function getAlias ( ) { if ( ! isset ( $ this -> alias ) ) { $ options = $ this -> getOptions ( ) ; if ( isset ( $ options [ 'alias' ] ) ) { $ this -> alias = $ options [ 'alias' ] ; } else { $ this -> alias = null ; } } return $ this -> alias ; }
Get the primary model for a relationship

@return string
Get the primary model for a relationship