Skip to content

Commit

Permalink
YORM-Doku: Beispiel für resetSelect()
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis authored Sep 29, 2023
1 parent 32a98a1 commit 8d8eb57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/04_yorm.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,18 @@ $query->whereListContains('my_column', 'my_value');
$query->whereListContains('my_column', [3, 5, 9]);
```

Beispiel für resetSelect()

// resetSelect() ermöglicht es im Anschluss per select nur die Felder des Datensatzes zu erhalten, die man wirklich benötigt.

```php
$dataset = rex_yform_manager_query::get('rex_yf_jobs_contactpersons')
->resetSelect()
->select('id')
->select('title')
->select('name')
->findId($id);
```

<a name="dataset-methoden"></a>

Expand Down

0 comments on commit 8d8eb57

Please sign in to comment.