Skip to content

Commit dc3e1f5

Browse files
committed
docs: rephrase dto docs
1 parent 277003d commit dc3e1f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/1-essentials/03-database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ The encryption key is taken from the `SIGNING_KEY` environment variable.
306306

307307
### Data transfer object properties
308308

309-
It's possible to store objects as-is in a `json` column, when they don't need to be part of your database schema.
309+
You can store arbitrary objects directly in a `json` column when they dont need to be part of the relational schema.
310310

311-
To do this, you may simply mark these objects with the `#[Tempest\Mapper\SerializeAs]` and specify a name for this object to be serialized as. Not that this name must uniquely correspond to a single class.
311+
To do this, annotate the class with `#[Tempest\Mapper\SerializeAs]` and provide a unique identifier for the object’s serialized form. The identifier must map to a single, distinct class.
312312

313313
```php
314314
use Tempest\Mapper\SerializeAs;

0 commit comments

Comments
 (0)