Use the Specification pattern to query Repositories powered by Doctrine, Propel or any other backbone you want.