stephpy/timeline-bundle

Issue with DuplicateKey filter

Closed this issue · 5 comments

Upon enabling the duplicatekey filter and having duplicate keys existing to be filtered, it looks like an error is being thrown somewhere by mishandling the default pager.

Fatal error: Cannot use object of type Spy\TimelineBundle\Driver\ORM\Pager as array in /.../stephpy/timeline/src/Spy/Timeline/Filter/DuplicateKey.php on line 46

I've yet to really poke around and see what is causing this bug, so any aid would be kick ass.

After investigating, it looks like #105 is what I'm reproducing... maybe out of date version of TimelineBundle on my end?

Did you try to update your dependencies?

My current composer.json file looks like the following:

"stephpy/timeline": "dev-master",
 "stephpy/TimelineBundle": "dev-master"

Looks like I'm up to date and the problem is still there. It's worth noting that I'm using the ORM Driver and not the ODM one.

Actually, looks like I'm reproducing work from stephpy/timeline#10

Implementing \ArrayAccess and adding the required functions seems to fix it, I can't push it myself and this also needs to be applied to the default ODM pager it seems like.

Yep, i had to do it, but i'm really busy atm :s