public function getReversePathInfo()
    {
        $meta = $this->scopeModel->getMeta();

        return [
            [
                'fromMeta' => $this->relation->getToModel()->getMeta(),
                'toMeta' => $meta,
                'targetFields' => [$meta->primaryKey],
                'joinField' => $this->relation, //field that joins the relationship
                'm2m' => false,
                'direct' => false,
            ],
        ];
    }
public function getReversePathInfo()
    {
        $meta = $this->scopeModel->getMeta();

        return [
            [
                'fromMeta' => $this->relation->getToModel()->getMeta(),
                'toMeta' => $meta,
                'targetFields' => [$meta->primaryKey],
                'joinField' => $this->relation, //field that joins the relationship
                'm2m' => false,
                'direct' => false,
            ],
        ];
    }
public function getReversePathInfo ( ) { $ meta = $ this -> scopeModel -> getMeta ( ) ; return [ [ 'fromMeta' => $ this -> relation -> getToModel ( ) -> getMeta ( ) , 'toMeta' => $ meta , 'targetFields' => [ $ meta -> primaryKey ] , 'joinField' => $ this -> relation , //field that joins the relationship 'm2m' => false , 'direct' => false , ] , ] ; }
Get path from the related model to this field's model.

@return array
@author: Eddilbert Macharia (http://eddmash.com)<edd.cowan@gmail.com>
Get path from the related model to this field s model .