So my first question is about the behavior about this method. The first
time i use it, they work perfectly. But if I use it with different
parameters, i still get the last query data. The code you implement do
the correct thing, is like a cache behaviour.
My question is not to report a BUG but more to understand this behavior
...
indeed, you are the 2nd person to report this "issue". It was first
reported by Vitek on this thread:
http://groups.google.com/group/Php-Object-Generator/browse_thread/thread/e9f0638edda8d019?hl=en
Actually, it is indeed a bug because it's not acting as a proper cache
and it is giving incorrect result. I.e. when getChildList or
getSiblingList are called multiple times within the same code block, it
is producing different results, which is incorrect.
This is currently being fixed and will be released in POG 2.6 in a few
days.
In the meantime, a workaround is to clear the internal list in between
getChildList calls, for e.g:
object->childList = array();
Hope this helps
Joel