Skip to content

Commit 073fde8

Browse files
authored
Update README.md
1 parent d60c5e9 commit 073fde8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@ Mappings are also used to hydrate data into it's entities again if the hydrator
9595

9696
## Entity class
9797

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.
9999

100100
```php
101-
namespace NilPortugues\Example\AutoGeneratedId;
102-
103101
use NilPortugues\Foundation\Domain\Model\Repository\Contracts\Identity;
104102

105103
class User implements Identity
@@ -147,8 +145,6 @@ class User implements Identity
147145
All methods from Mapping interface are mandatory.
148146

149147
```php
150-
namespace NilPortugues\Example\AutoGeneratedId;
151-
152148
use NilPortugues\Foundation\Domain\Model\Repository\Contracts\Mapping;
153149

154150
class UserMapping implements Mapping

0 commit comments

Comments
 (0)