ekino/EkinoDrupalBundle — pull request #35 by eko (2014-09-26 08:46:46+00:00)
Title: Fix EntityRepository findOnePublishedBy() method for status overriding

When using method `EntityRepository::findOnePublishedBy()`, status is forced to 1 (published).

The issue is that actually, we cannot pass any other property condition as `array_replace_recursive()` function will replace it with the `status` column.

I've fixed this by using an `array_filter()` that checks if a status is sent and override it with correct value in this case. Otherwise, published status is added to every query.