{"issue":{"state":"open","pull_request":{"diff_url":"https://github.com/doctrine/phpcr-odm/pull/76.diff","html_url":"https://github.com/doctrine/phpcr-odm/pull/76","patch_url":"https://github.com/doctrine/phpcr-odm/pull/76.patch"},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/719f43194a489e0886441dd61b158798?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"719f43194a489e0886441dd61b158798","url":"https://api.github.com/users/nacmartin","login":"nacmartin","id":154258},"assignee":null,"labels":[],"updated_at":"2011-11-01T08:58:33Z","closed_at":null,"comments":8,"url":"https://api.github.com/repos/doctrine/phpcr-odm/issues/76","body":"This a QueryBuilder with fluent interface that mimics the behaviour of the Doctrine DBAL QueryBuilder. It doesn't depend on other stuff of the DBAL, it depends only on PHPCR interfaces, so I think it can go either here or into PHPCR as  \"helper\" code.\r\n\r\nIt is tested with unit tests and also this piece of \"real code\" using the QueryBuilder works:  \r\nhttps://github.com/nacmartin/SonataAdminBundle/blob/phpcr/Datagrid/ODM/PHPCR/ProxyQuery.php\r\n\r\nPS: I have updated the jackalope submodule to current master to get the new names for andConstraint() and orConstraint() of the QOM.","html_url":"https://github.com/doctrine/phpcr-odm/issues/76","title":"QueryBuilder with fluent interface","number":76,"id":2084959,"created_at":"2011-10-28T23:49:02Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c9f4f8ce2c2936bacaf49500b5a127dc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c9f4f8ce2c2936bacaf49500b5a127dc","url":"https://api.github.com/users/dbu","login":"dbu","id":76576},"updated_at":"2011-11-01T08:58:33Z","url":"https://api.github.com/repos/doctrine/phpcr-odm/issues/comments/2588076","body":"i think PHPCR\\Util is a good place. and then we should add a getQueryBuilder method to the QueryManagerInterface. this would allow implementations to replace the query builder if for some reason they want to replace it.","id":2588076,"created_at":"2011-11-01T08:58:33Z"}}