Replies: 5 comments 1 reply
-
Hi @LeFlow
|
Beta Was this translation helpful? Give feedback.
-
II had tried |
Beta Was this translation helpful? Give feedback.
-
it will make clear if you put whole model, including import statments to better understood what's going on |
Beta Was this translation helpful? Give feedback.
-
and
|
Beta Was this translation helpful? Give feedback.
-
Very good. TY All. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm training on Adonisjs 6, but following an example based on Adonisjs 5.
In a model, the annotation is used
I imported:
{ BaseModel, belongsTo, column } from '@adonisjs/lucid/orm'
BelongsTon' is not recognized.
In this example, it is imported by
'@adonisjs/lucid/orm'
But it does not work.
My IDE offers to import it from
'@adonisjs/lucid/types/relations'
Despite everything, I have an error at the level of
category: BelongsTo
I don't know, it's quite explicit, but thanks anyway in advance (only if you've tried to understand).
TY
Beta Was this translation helpful? Give feedback.
All reactions