Issue while accessing relation
-
Hello Team,
I am facing a very strange issue. I would like to explain below:
I have extended the Cart model.
When I use this cart model to fetch result including eager loaded timeslot, it works
But later, when I access the timeslot, it is giving me null, however there is data present as per the above screenshot
Can anyone help me identifying the issue why this is occurring. I am stuck from a long time.
-
Hi @suyashcyber94,
Data may be present but the last screenshot is looks like
timeslot
is null. -
Hi, thanks for your revert.
As you can check in the above screenshot, the timeslot is not null as its relation is having data:
Do you think anything is still wrong?
-
Please check your code, may be some thing is missing.