Closed christopherfuturistech closed 4 years ago
Hey there,
Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? We'll help you out and re-open this issue if so.
Thanks!
Description:
Just yesterday we were having a php error on one of our model upon retrieval of data I have joined a parent table which has a softdelete trait with another model that has no softdelete trait.
Steps To Reproduce:
This would result to an error 'Trying to get property 'id' of non-object' fortunately i manage to handle this with global scopes (but without it the error would occur) cause I knew that if a restaurant is not soft deleted it would be null by value and is included on the list so calling a location that belongs to a restaurant that was soft deleted should not have any issues even by retrieving it not sure if this is something that we should really be handling or solving it with global scope would be sufficient enough to handle it I included my solution on the current version I'm using I also tried 6.x version and its the same thing.
Best Regards