Skip to content

Commit

Permalink
Fix error when calling getById with array
Browse files Browse the repository at this point in the history
Disable caching by default
  • Loading branch information
nohponex committed Mar 21, 2017
1 parent e87494b commit b71ed19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class Model extends \Phramework\JSONAPI\Model\Relationship
* Enable caching of resources
* @var bool
*/
protected static $caching = true;
protected static $caching = false;

/**
* Get resource's validation model
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Relationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function getRelationshipData(
$resource = $callMethod = static::getById(
$id,
$fields,
$primaryDataParameters
...$primaryDataParameters
);

if (!$resource) {
Expand Down

0 comments on commit b71ed19

Please sign in to comment.