Skip to content

Commit

Permalink
YORM-Doku: Beispiel für resetSelect() (#1456)
Browse files Browse the repository at this point in the history
* YORM-Doku: Beispiel für resetSelect()

* Update docs/04_yorm.md

Co-authored-by: Alexander Walther <[email protected]>

---------

Co-authored-by: Alexander Walther <[email protected]>
  • Loading branch information
skerbis and alxndr-w authored Sep 29, 2023
1 parent 32a98a1 commit 691342e
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_example')
->resetSelect()
->select('id')
->select('title')
->select('name')
->findId($id);
```

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

Expand Down

0 comments on commit 691342e

Please sign in to comment.