protected function getReferencingTable($name)
    {
        $references = $this->getReferences();

        if (array_key_exists($name, $references)) {
            return $references[$name]->refTable;
        }

        return null;
    }
protected function getReferencingTable($name)
    {
        $references = $this->getReferences();

        if (array_key_exists($name, $references)) {
            return $references[$name]->refTable;
        }

        return null;
    }
protected function getReferencingTable ( $ name ) { $ references = $ this -> getReferences ( ) ; if ( array_key_exists ( $ name , $ references ) ) { return $ references [ $ name ] -> refTable ; } return null ; }
Gets the referenced table name by it's relation name
to this model.

@param string $name

@return mixed|null
Gets the referenced table name by it s relation name to this model .