vapor-community / Vii

Vii attempts to reverse engineer an existing database into Vapor 4 compatible models
MIT License
7 stars 2 forks source link

Redeclaration of @Parent and @OptionalParent as @Field #11

Closed jonny7 closed 4 years ago

jonny7 commented 4 years ago

Related to https://github.com/vapor-community/Vii/issues/10. Because the column's don't match once you convert the SQL data type to the propertyWrapper's type, the column isn't being excluded during the already processed columns method. Resulting in:

    @Parent(key: "userId")
    var userId: User 

    @Field(key: "userId")
    var userId: UUID?