Skip to content

Commit fa9b9ac

Browse files
committed
docs: add missing yaml identifiers documentation
1 parent d2a328b commit fa9b9ac

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

core/identifiers.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ final class Person
3434
}
3535
```
3636

37+
```yaml
38+
# config/api/resources/Person.yaml
39+
App\Entity\Person:
40+
properties:
41+
code:
42+
identifier: true
43+
```
44+
3745
```xml
3846
<resources xmlns="https://api-platform.com/schema/metadata">
3947
<resource class="App\EntityPerson">
@@ -156,7 +164,7 @@ use Doctrine\ORM\Mapping as ORM;
156164
final class Person
157165
{
158166
/**
159-
* @var int
167+
* @var int
160168
* @ApiProperty(identifier=false)
161169
*
162170
* @ORM\Id()

0 commit comments

Comments
 (0)