title: Parse.com PHP SDK Get User Relations for Object
body: <p>I'm saving user "Likes" as a relation to Post objects, just like in the docs.</p>
  
  <pre><code>$user = ParseUser::getCurrentUser();    
  $post= new ParseObject("Post", $the_post_id);
  $relation = $user-&gt;getRelation("likes");
  $relation-&gt;add($post);
  $user-&gt;save();
  </code></pre>
  
  <p>This works fine so far. </p>
  
  <p>Now I'm wondering how to query the Posts and also pull a Count of how many users liked each post. I don't want to run separate queries in a loop for each Post.</p>
  
  <p>I would also like to know if the CurrentUser likes each post in the query as well. Again, definitely want to avoid making multiple queries in a loop.</p>
  
  <p>Is this possible?</p>
  
  <p>My Current Post Query:</p>
  
  <pre><code>$query = new ParseQuery("Post");
  $posts = $query-&gt;find();
  </code></pre>