Skip to content

Commit 5d8e23a

Browse files
committed
Standardize line break formatting in documentation tables for consistency.
1 parent 4880181 commit 5d8e23a

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

docs/architecture-layers.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,15 @@ class DataExporter
361361

362362
## Summary
363363

364-
| Aspect | Infrastructure Layer | Domain Layer |
365-
|------------------------|--------------------------------|-----------------------------------------------------------|
366-
| **Methods** | `Query::buildAndGetIterator()` | `Repository::getIterator()`<br>`Repository::getByQuery()` |
367-
| **Returns** | Raw arrays | Domain entities |
368-
| **Mapper** | Not required | Required |
369-
| **Entity Transform** | No | Yes (automatic) |
370-
| **Multi-Mapper JOINs** | Not supported | Supported |
371-
| **Use Cases** | Migrations, utilities, testing | Application logic, CRUD |
372-
| **Coupling** | Low (stateless) | High (repository lifecycle) |
364+
| Aspect | Infrastructure Layer | Domain Layer |
365+
|------------------------|--------------------------------|-------------------------------------------------------------|
366+
| **Methods** | `Query::buildAndGetIterator()` | `Repository::getIterator()`<br />`Repository::getByQuery()` |
367+
| **Returns** | Raw arrays | Domain entities |
368+
| **Mapper** | Not required | Required |
369+
| **Entity Transform** | No | Yes (automatic) |
370+
| **Multi-Mapper JOINs** | Not supported | Supported |
371+
| **Use Cases** | Migrations, utilities, testing | Application logic, CRUD |
372+
| **Coupling** | Low (stateless) | High (repository lifecycle) |
373373

374374
**Key Takeaway**: Use Repository methods in your application code. Reserve Query methods for infrastructure-level
375375
operations where entity transformation is not needed or not desired.

docs/getting-started-model.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ public function setId(?int $id): void
4444

4545
### Requirements for the properties in the Model class:
4646

47-
| Property Characteristic | Requirement | Example |
48-
|----------------------------|----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
49-
| Property with type | Must be nullable with default value set (null preferred) | `public ?int $id = null;` |
50-
| Property without type | No need to set default value | `public $id;` |
51-
| Protected/Private property | Must have getter and setter public methods | `protected ?int $id = null;`<br>`public function getId(): ?int {...};`<br>`public function setId(?int $id): void {...};` |
47+
| Property Characteristic | Requirement | Example |
48+
|----------------------------|----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
49+
| Property with type | Must be nullable with default value set (null preferred) | `public ?int $id = null;` |
50+
| Property without type | No need to set default value | `public $id;` |
51+
| Protected/Private property | Must have getter and setter public methods | `protected ?int $id = null;`<br />`public function getId(): ?int {...};`<br />`public function setId(?int $id): void {...};` |
5252

5353
## Property Mapping Strategy with the Database
5454

0 commit comments

Comments
 (0)