{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/b4b1f4e9b1c35b5adfd5ca5040fa1580?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b4b1f4e9b1c35b5adfd5ca5040fa1580","url":"https://api.github.com/users/EmmanuelVella","login":"EmmanuelVella","id":663607},"labels":[],"assignee":null,"updated_at":"2011-11-14T08:26:35Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/sonata-project/SonataDoctrineORMAdminBundle/issues/10","body":"I get the following error when using this callback :\r\n\r\n```\r\nIterate with fetch join in class Application\\RealEstateBundle\\Entity\\Picture using association product not allowed.\r\n```\r\n\r\n```\r\nfunction($queryBuilder, $alias, $field, $value) {\r\n    $queryBuilder->leftJoin($alias.'.pictures', 'pic');\r\n\r\n    if ((int) $value['value'] === 1) {\r\n        $queryBuilder->andWhere('pic.id IS NOT NULL');\r\n    } elseif ((int) $value['value'] === 2) {\r\n        $queryBuilder->andWhere('pic.id IS NULL');\r\n    }\r\n}\r\n```\r\n\r\nI try to get all the products with / without pictures.","html_url":"https://github.com/sonata-project/SonataDoctrineORMAdminBundle/issues/10","title":"Datagrid filters : doctrine_orm_callback with join","number":10,"id":2228123,"created_at":"2011-11-14T08:26:35Z"},"action":"opened"}