Doctrine 2 - ORM

[GH-375] Allow passing any callable instead of only closures