src/Magniloquent/Magniloquent/Magniloquent.php
protected function callRelationships($method)
    {
        $relation_params = static::$relationships[$method];

        $relation_type = array_shift($relation_params);

        return call_user_func_array(array($this, $relation_type), $relation_params);
    }
protected function callRelationships($method)
    {
        $relation_params = static::$relationships[$method];

        $relation_type = array_shift($relation_params);

        return call_user_func_array(array($this, $relation_type), $relation_params);
    }
Will call a relationship method as defined by the $relationships variable
on the class.  $relationships is an array of arrays in the following form:
array('hasOne', 'model', 'foreignKey')
array('hasMany', 'model', 'foreignKey')
array('belongsTo', 'model', 'foreignKey')
array('belongsToMany', 'model', 'table_name', 'this_id', 'other_id')
array('morphTo')
array('morphMany', 'model', 'relation_name')

@param $method

@return mixed