jackalope/jackalope-doctrine-dbal

storing multivalue reference should not eliminate duplicates

Closed this issue · 4 comments

dbu commented

https://github.com/jackalope/jackalope-doctrine-dbal/blob/master/src/Jackalope/Transport/DoctrineDBAL/Client.php#L948 is doing an array_unique. i think we fixed bugs elsewhere that allowed to store the reference to the same target multiple times.

dbu commented

this will also be a problem with jackalope/jackalope#242

is this now fixed?

dbu commented

there is still the call to array_unique so if there is no failing test it means we are missing a test that stores the same ref multiple times. (reading, when data is loaded through fixtures probably already works)

dbu commented

the line moved to https://github.com/jackalope/jackalope-doctrine-dbal/blob/master/src/Jackalope/Transport/DoctrineDBAL/Client.php#L1001 since i created the issue. guess there is a point to link to a specific commit for these things...