Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

property wrappers #54

Merged
merged 15 commits into from
Jul 31, 2019
Merged

property wrappers #54

merged 15 commits into from
Jul 31, 2019

Conversation

tanner0101
Copy link
Member

Updates FluentKit's model API to take advantage of property wrappers:

final class Planet: Model {
    @Field var id: Int?
    @Field var name: String
    @Parent var galaxy: Galaxy

    init() { }

    init(id: Int? = nil, name: String, galaxyID: Galaxy.ID) {
        self.id = id
        self.name = name
        self.$galaxy.id = galaxyID
    }
}

@tanner0101 tanner0101 added the enhancement New feature or request label Jul 25, 2019
@tanner0101 tanner0101 added this to In Progress in Vapor 4 via automation Jul 25, 2019
@tanner0101 tanner0101 merged commit ef11d19 into master Jul 31, 2019
Vapor 4 automation moved this from In Progress to Done Jul 31, 2019
@penny-coin
Copy link

Hey @tanner0101, you just merged a pull request, have a coin!

You now have 1325 coins.

@tanner0101 tanner0101 deleted the property-wrapper-2 branch July 31, 2019 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Vapor 4
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants