Closed loveshiun closed 3 months ago
Hi @loveshiun,
I tried to eager load (nested) relations with just some columns including path but not all the custom paths, I got Undefined property: stdClass::$custom_path.
What does your query look like?
When I tried to isolate the problem, and tested by using this package only, it worked correctly; the error cannot be reproduced. Maybe other parts of my program caused the error.
It looks okay. This issue can be closed.
Thank you!
I tried to eager load (nested) relations with just some columns including
path
but not all the custom paths, I gotUndefined property: stdClass::$custom_path
.I use
getCustomPaths()
which includescustom_path
When in laravel-adjacency-list/src/Eloquent/Traits/BuildsAdjacencyListQueries.php
getModels()
and then the
replacePathSeparator()
may read and use$item->$path
.Is it possible not to include custom paths when including path?