Exercise/FOQElasticaBundle — pull request #86 by r1pp3rj4ck (2012-04-05 13:36:08+00:00)
Title: Listener check method

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Tests pass: no
Todo: fix the tests

This patch adds a check_method config parameter to the persistence. In case this is specified, the insert and update listeners will call the method and if it returns false, it won't be added to the index (will be removed in case of it's an update).