Skip to content

Commit e76dcb3

Browse files
committed
docs: slightly improve wording in models docs
1 parent ccb8d46 commit e76dcb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/Web/Documentation/content/main/1-essentials/05-models.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ We are currently discussing about taking a different approach to the ORM. [We'd
1212

1313
## Overview
1414

15-
Any object with typed public properties can represent a model, these object don't have to implement anything:
15+
Any object with public, typed properties can represent a modelthese objects don't have to implement anything, they may be plain-old PHP objects.
1616

1717
```php app/Book.php
1818
use Tempest\Validation\Rules\Length;
@@ -30,7 +30,9 @@ final class Book
3030
}
3131
```
3232

33-
For persistence, you can use [Tempest's mapper](/main/tempest-in-depth/mapper):
33+
## Using the mapper to instantiate models
34+
35+
[Tempest's mapper](../2-tempest-in-depth/01-mapper) is able to map data from many different sources to a model. For instance, you can specify the path to a JSON file or object to create an instance of a model, and the other way around.
3436

3537
```php
3638
use function Tempest\map;

0 commit comments

Comments
 (0)