Skip to content

Conversation

raftalks
Copy link

This PR introduces belongsToMany relationship.
Example usage syntax:

Team:
    name: string
    description: longtext
    relationships: 
        belongsToMany:User

User:
    username: string
    relationships: 
        belongsToMany:Team

Generates migration pivot table and adds relationship to the model

@jasonmccreary
Copy link
Collaborator

Thanks for this. I'll review this evening and add some tests as I will need to do so before accepting.

This was referenced Apr 15, 2020
@jasonmccreary
Copy link
Collaborator

Thank you for the start. Looks like another contributor has used this and added the missing tests. So I have merged your work through #113.

@raftalks raftalks deleted the feature/belongsToManyRelationship branch April 18, 2020 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants