File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,9 @@ Mappings are also used to hydrate data into it's entities again if the hydrator
95
95
96
96
## Entity class
97
97
98
- Remember, an Entity must implement the ` Identity ` interface to work with SqlRepository.
98
+ Remember, an Entity must implement the ` Identity ` interface to work with SqlRepository. This Entity can be any class of yours.
99
99
100
100
``` php
101
- namespace NilPortugues\Example\AutoGeneratedId;
102
-
103
101
use NilPortugues\Foundation\Domain\Model\Repository\Contracts\Identity;
104
102
105
103
class User implements Identity
@@ -147,8 +145,6 @@ class User implements Identity
147
145
All methods from Mapping interface are mandatory.
148
146
149
147
``` php
150
- namespace NilPortugues\Example\AutoGeneratedId;
151
-
152
148
use NilPortugues\Foundation\Domain\Model\Repository\Contracts\Mapping;
153
149
154
150
class UserMapping implements Mapping
You can’t perform that action at this time.
0 commit comments