/**
  * Parses the result to fetch the relations and the unlocalized data
  * @param array $result
  * @param array $belongsToFields
  * @param array $hasFields
  * @param string $indexField Name of the field to use as key in the resulting array
  * @return array Result
  */
 protected function parseResult($result, $belongsToFields, $hasFields, $indexField = null)
 {
     $result = $this->model->getResultParser()->parseResult($result, $indexField);
     $result = $this->queryRelations($result, $belongsToFields, $hasFields);
     $result = $this->queryUnlocalized($result, $indexField);
     return $result;
 }