We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2a328b commit fa9b9acCopy full SHA for fa9b9ac
core/identifiers.md
@@ -34,6 +34,14 @@ final class Person
34
}
35
```
36
37
+```yaml
38
+# config/api/resources/Person.yaml
39
+App\Entity\Person:
40
+ properties:
41
+ code:
42
+ identifier: true
43
+```
44
+
45
```xml
46
<resources xmlns="https://api-platform.com/schema/metadata">
47
<resource class="App\EntityPerson">
@@ -156,7 +164,7 @@ use Doctrine\ORM\Mapping as ORM;
156
164
final class Person
157
165
{
158
166
/**
159
- * @var int
167
+ * @var int
160
168
* @ApiProperty(identifier=false)
161
169
*
162
170
* @ORM\Id()
0 commit comments