public function getRelationSavingModels($relation)
    {
        $result = isset($this->savingModels[$relation])
            ? $this->savingModels[$relation]
            : $this->owner->$relation;
        return is_array($result) && (!$this->owner->getRelation($relation)->multiple)
            ? reset($result) : $result;
    }
public function getRelationSavingModels($relation)
    {
        $result = isset($this->savingModels[$relation])
            ? $this->savingModels[$relation]
            : $this->owner->$relation;
        return is_array($result) && (!$this->owner->getRelation($relation)->multiple)
            ? reset($result) : $result;
    }
public function getRelationSavingModels ( $ relation ) { $ result = isset ( $ this -> savingModels [ $ relation ] ) ? $ this -> savingModels [ $ relation ] : $ this -> owner -> $ relation ; return is_array ( $ result ) && ( ! $ this -> owner -> getRelation ( $ relation ) -> multiple ) ? reset ( $ result ) : $ result ; }
Get either saving post data for related models or models themself
@param $relation
@return array
Get either saving post data for related models or models themself