Skip to content

Commit 7d40467

Browse files
committed
Update docs
1 parent 3e698b8 commit 7d40467

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/2. Active Record.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ $customer->read($value);
8080
* Returns an array of errors indexed by field name. Empty array means the record has correctly validated.
8181

8282
## Related Records
83-
Related records are indicated by field name ending in the id suffix (default: 'Id'). The field name before the 'Id' must be the same as the corresponding table name.
83+
Related records are indicated by field name ending in the id suffix (default: 'Id'). The field name before the 'Id' must be the same as the corresponding table name. See See [Virtual Fields](<https://github.com/phpfui/ORM/blob/main/docs/5. Virtual Fields.md>) for more advanced Related Records.
8484

8585
### Accessing Related Records
8686
You access the related record by the base field name (without the id suffix). The field with the id suffix is the primary key of the related record.

docs/7. Validation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Individual validators are listed in the table below. Validators can be combined.
88
## Usage
99

1010
```php
11-
$record = new \App\Record\Example($_POST);
11+
$record = new \App\Record\Example();
12+
$record->setFrom($_POST);
1213
$validationErrors = $record->validate();
1314
if (! validationErrors)
1415
{

0 commit comments

Comments
 (0)