protected function setRelations($values)
    {
        if (isset($values[0]->belongsTo)) {
            $this->relations['belongsTo'] = $values[0]->belongsTo;
        }

        if (isset($values[0]->belongsToMany)) {
            $this->relations['belongsToMany'] = $values[0]->belongsToMany;
        }

        if (isset($values[0]->hasOne)) {
            $this->relations['hasOne'] = $values[0]->hasOne;
        }

        if (isset($values[0]->hasMany)) {
            $this->relations['hasMany'] = $values[0]->hasMany;
        }

        if (isset($values[0]->hasManyThrough)) {
            $this->relations['hasManyThrough'] = $values[0]->hasManyThrough;
        }
    }