public function getRelatedQueryName()
    {
        // we check if the queryname/ relatedName is set otherwise use we use the name of the model.
        if ($this->relation->relatedQueryName) {
            $name = $this->relation->relatedQueryName;
        } elseif ($this->relation->relatedName) {
            $name = $this->relation->relatedName;
        } else {
            $name = $this->scopeModel->getMeta()->getModelName();
        }

        return strtolower($name);
    }
public function getRelatedQueryName()
    {
        // we check if the queryname/ relatedName is set otherwise use we use the name of the model.
        if ($this->relation->relatedQueryName) {
            $name = $this->relation->relatedQueryName;
        } elseif ($this->relation->relatedName) {
            $name = $this->relation->relatedName;
        } else {
            $name = $this->scopeModel->getMeta()->getModelName();
        }

        return strtolower($name);
    }
public function getRelatedQueryName ( ) { // we check if the queryname/ relatedName is set otherwise use we use the name of the model. if ( $ this -> relation -> relatedQueryName ) { $ name = $ this -> relation -> relatedQueryName ; } elseif ( $ this -> relation -> relatedName ) { $ name = $ this -> relation -> relatedName ; } else { $ name = $ this -> scopeModel -> getMeta ( ) -> getModelName ( ) ; } return strtolower ( $ name ) ; }
Define the name that can be used to identify this related object in a table-spanning query.

@return string
@author: Eddilbert Macharia (http://eddmash.com)<edd.cowan@gmail.com>
Define the name that can be used to identify this related object in a table - spanning query .