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

Invalid syntax in warning #15

Closed
BrettRToomey opened this issue Mar 30, 2017 · 0 comments
Closed

Invalid syntax in warning #15

BrettRToomey opened this issue Mar 30, 2017 · 0 comments

Comments

@BrettRToomey
Copy link
Contributor

The warning If you want to use models with Fluent, make sure to add the model to the Droplet's preparations array, e.g., drop.preparations += ModelType.self is useful for detecting misconfigured projects, except for the recommended fix is invalid swift. It should be updated to either drop.preparations.append(ModelType.self) or use an array of preparations.

Here's the line of code: https://github.com/vapor/fluent-provider/blob/3c2cb5cf3c0b9cb387f65f8df410e927815985f5/Sources/FluentProvider/Provider.swift#L161

tanner0101 added a commit that referenced this issue Apr 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants