I have the following query which is providing undesired results.
$query = $dm->createQueryBuilder('MainClassifiedBundle:Discussion')
->field('id')->equals($discussionId)
->field('discussion_id')->equals($discussionId);
What I am trying to do is to find any documents where id = $discussionId OR discussion_id =$discussionId.
Many thanks for your help