File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file. This project adheres to
3
3
[ Semantic Versioning] ( http://semver.org/ ) and [ this changelog format] ( http://keepachangelog.com/ ) .
4
4
5
+ ## [ 0.5.4] - 2016-12-21
6
+
7
+ ### Fixed
8
+ - Bug in Eloquent adapter meant that a check for whether a resource identifier exists was checking whether the
9
+ whole table had any rows, rather than the specific id.
10
+
5
11
## [ 0.5.3] - 2016-12-01
6
12
7
13
### Fixed
Original file line number Diff line number Diff line change @@ -67,14 +67,14 @@ public function recognises($resourceType)
67
67
68
68
/**
69
69
* @param ResourceIdentifierInterface $identifier
70
- * @return mixed
70
+ * @return bool
71
71
*/
72
72
public function exists (ResourceIdentifierInterface $ identifier )
73
73
{
74
74
$ model = $ this ->resolve ($ identifier ->getType ());
75
75
$ key = $ this ->resolveQualifiedKeyName ($ model , $ identifier ->getType ());
76
76
77
- return $ this ->newQuery ($ model )->exists ($ key , $ identifier ->getId ());
77
+ return $ this ->newQuery ($ model )->where ($ key , $ identifier ->getId ())-> exists ( );
78
78
}
79
79
80
80
/**
You can’t perform that action at this time.
0 commit comments