title: CreateCriteria grails
body: <p>I am trying to use the create criteria method in grails but im getting back an empty list im not sure why.
  My code is as follow</p>
  
  <pre><code>    def results = PostOrder.createCriteria().list() {
          posts{
              author{
                  eq('username', lookupPerson().username)
              }
          }
          picture{
              user{
                  eq('username', lookupPerson().username)
              }
          }
      }
  </code></pre>
  
  <p>PostOrder domain is as follows:</p>
  
  <pre><code>class PostOrder {
  
      String pOrder
      Date dateCreated
      Picture picture
      Post posts
      Video video
      Boolean favorite = false
  
      static hasMany = [children : Child]
  
      static constraints = {
          picture nullable: true
          posts nullable: true
          video nullable:  true
      }
  }
  </code></pre>
  
  <p>Post is as follows:</p>
  
  <pre><code> class Post {
  
      String message
      User author
      Date dateCreated
      Child child
      boolean postedToAll
      String tag
  
  static hasMany = [tags:Tag]
  
      static constraints = {
          child nullable: true
          tags nullable: true
          tag nullable: true
       }
  }
  </code></pre>
  
  <p>finally picture is as follows:</p>
  
  <pre><code> class Picture {
  
      String orgName
      String urlOrg
      String urlWeb
      String urlThumb
      Date   dateCreated
      String caption
      Child child
      User user
      Album contained
      String tag
      boolean postedToAll
  
      static hasMany = [tags:Tag]
  
      static constraints = {
          orgName blank: false
          caption maxSize: 500
          tags nullable:  true
          caption nullable: true
          tag nullable: true
          child nullable:  true
      }
  }
  </code></pre>
  
  <p>To me this would work perfectly fine, can anyone see why is doesn't?</p>