Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Barile committed Aug 12, 2013
1 parent 1098142 commit 51bb648
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion lib/backend/mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -687,13 +687,13 @@ function get($oid, $params = array()) {
// Grab first result
$result = $result[0];

// (pk can be excluded with the _fields parameter)
if (isset($result[$this->table->pk])) {

// Initialize HAL Links
$result['_links'] = array('self' => sprintf("/%s/%s", $this->id, $result[$this->table->pk]));

// If eager, fetch relations
// (pk can be excluded from the _fields parameter)
if ($params['_eager']) {
foreach ($this->hasMany as $hasMany_id => $hasMany_params) {
$hasMany_defaults = array(
Expand Down
11 changes: 0 additions & 11 deletions lib/cache.php

This file was deleted.

0 comments on commit 51bb648

Please sign in to comment.