public function entity(Entity $entity, Array $linkRelations = array()) {
    if (!isset($this->meta['links']))
      $this->meta['links'] = array();
      
    foreach ($linkRelations as $linkRelation) {
      $this->meta['links'][] = (object) array(
        'rel'=>$linkRelation->getName(),
        'href'=>$linkRelation->getHref()
      );
    }
    
    return $this;
  }