This repository was archived by the owner on Feb 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ behaviour can be maintained by setting the `by-resource` config option to the st
22
22
23
23
### Fixed
24
24
- Resolver was not correctly classifying the resource type when resolution was not by resource.
25
+ - [ #176 ] ( https://github.com/cloudcreativity/laravel-json-api/issues/176 )
26
+ Do not import model class in Eloquent adapter stub to avoid collisions with class name when using the legacy
27
+ * not-by-resource* behaviour.
25
28
26
29
## [ 1.0.0-alpha.2] - 2018-05-06
27
30
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ use CloudCreativity\LaravelJsonApi\Eloquent\AbstractAdapter;
6
6
use CloudCreativity\LaravelJsonApi\Pagination\StandardStrategy;
7
7
use Illuminate\Database\Eloquent\Builder;
8
8
use Illuminate\Support\Collection;
9
- use DummyApplicationNamespace\DummyRecord;
10
9
11
10
class DummyClass extends AbstractAdapter
12
11
{
@@ -25,7 +24,7 @@ class DummyClass extends AbstractAdapter
25
24
*/
26
25
public function __construct(StandardStrategy $paging)
27
26
{
28
- parent::__construct(new DummyRecord(), $paging);
27
+ parent::__construct(new \DummyApplicationNamespace\ DummyRecord(), $paging);
29
28
}
30
29
31
30
/**
Original file line number Diff line number Diff line change @@ -343,8 +343,8 @@ private function assertEloquentAdapter()
343
343
$ content = $ this ->assertAdapter ();
344
344
345
345
$ this ->assertContains ('Eloquent\AbstractAdapter ' , $ content );
346
- $ this ->assertContains ('use DummyApp\Company; ' , $ content );
347
<
587B
/td>
- $ this ->assertContains ('parent::__construct(new Company(), $paging); ' , $ content );
346
+ $ this ->assertNotContains ('use DummyApp\Company; ' , $ content );
347
+ $ this ->assertContains ('parent::__construct(new \DummyApp\ Company(), $paging); ' , $ content );
348
348
}
349
349
350
350
/**
You can’t perform that action at this time.
0 commit comments