relations:
User:
foreignAlias: Phonenumbers
local: user_id
foreign: id
type: one
foreignType: many- Did you forget to define the user_id field in the Phonenumber table?
- Did you check the type of the user_id field and the Phonenumber table's id field? They must be exactly the same integer. If one of them is int(4) and the other is int(8), the building will fail.