Self referencing table query
So I have a
All seems to be working fine, migration is being generated and works perfectly fine.
But then when I try to query the data with references it fails on sql error:
Whole query:
and the code used to query the data:
Any ideas if that is possible to work, or am I doing something wrong here?
category table that references itself, each category can have a parent that is also a category.All seems to be working fine, migration is being generated and works perfectly fine.
But then when I try to query the data with references it fails on sql error:
Whole query:
and the code used to query the data:
Any ideas if that is possible to work, or am I doing something wrong here?



