title: GreenDao query with LIKE clause in related object
body: <p>How to use green dao query to query objects, that has LIKE sting in related object?</p>
  
  <pre><code>      QueryBuilder qb = mainDao.queryBuilder();
    qb.where(
        mainDao.Properties.Date.between(filter.getFrom().getTime(), filter.getTo().getTime()),
        qb.or(mainDao.Properties.Details.like("%"+ string + "%"),
            infoDao.Properties.Display_name.like("%" + string + "%"),
            infoDao.Properties.Email.like("%" + string + "%"),
            infoDao.Properties.Phone.like("%" + string + "%"),
            infoDao.Properties.Code.like("%" + string + "%")));
  </code></pre>
  
  <p>This kind of query constructed by me will not work? Any suggestions how I could managed a query that checks related field properties for occurrences?</p>
  
  <p>MainDao has foregin key of InfoDao</p>
  
  <p>I think I want to do something like this:</p>
  
  <pre><code>    SELECT *
      FROM Main
      INNER JOIN Info
      ON Main.InfoID=Info.InfoID;
      WHERE Info.SomeField LIKE "%string%"
  </code></pre>