title: How to use object listing for condition on relation object
body: <p>This question may be asked before, But i unable to find satisfiable answer. Let we have object named Product having a relation with Tags. So if we need to find products for particular Tag, As pimcore object listing work on direct on main table/view that store relations as comma seperated values in single column. So only LIKE search solution is suggested by others.</p>
  
  <pre><code>$entries -&gt;setCondition("Tags LIKE " . $entries-&gt;quote("%".$tagId."%"));
  </code></pre>
  
  <p>But I think, this solution have one bigger issue If some products store tags id like 00,111,112,189 and we want to search on tag id = 11 It will return products for undesirable tag ids like 111, 112 record too.</p>
  
  <p>One solution to ignore pimcore object at all and use Zend DB Calls to object_[PRODUCTCLASSID] AND object_relations_[PRODUCTCLASSID] views.</p>
  
  <p>If any other solution exist to tackle issue using only Pimcore Object API.</p>