title: how to use a Grails DetachedCriteria as its own criteria
body: <p>I want to get all rows that match some arbitrary criteria, then I want to also include any rows whose id is the parentId for any of those rows.</p>
  
  <pre><code>def criteria = MovieWorkbook.whereAny {
      and { 
          ilike("name", name)
          or {
              eq("status", "open")
              eq("status", "pending")
          }
      }
  }
  
  // this fails - returns nothing
  criteria.or {
      inList("id", criteria.list()*.parentId )
  }
  criteria.list()
  </code></pre>