I'm not sure why, but getAncestorsAndSelf() does not seem to be working correctly for me. I have a category object who's parent ID is equal to my root object ID. Here are the entries in my database showing the category in question as well as the root category:
I don't understand why I am getting all of these categories back when the parent_id for Category 3400 is the root category. Why are the other ones appearing in the response? Is this a bug?
I'm not sure why, but
getAncestorsAndSelf()
does not seem to be working correctly for me. I have a category object who's parent ID is equal to my root object ID. Here are the entries in my database showing the category in question as well as the root category:Now, when I select category ID 3400 from the database, and call
getAncestorsAndSelf()
:I get the following response:
Here are those 4 categories in my database:
I don't understand why I am getting all of these categories back when the
parent_id
for Category 3400 is the root category. Why are the other ones appearing in the response? Is this a bug?