Skip to content

Commit 854b4d4

Browse files
authored
Merge pull request #192 from kate-kate/master
Add notice about custom entity identifier in data-providers.md
2 parents a16ddee + 7cfeb6f commit 854b4d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/data-providers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ For a given resource, you can implement two kind of interfaces:
1818
is used when fetching items.
1919

2020
In the following examples we will create custom data providers for an entity class class called `AppBundle\Entity\BlogPost`.
21+
Note, that if your entity is not doctrine-related, you need to flag the identifier property by using `@ApiProperty(identifiier=true)` for things to work properly (refer to [Entity Identifier Case](serialization-groups-and-relations.md#entity-identifier-case)).
2122

2223
## Custom Collection Data Provider
2324

0 commit comments

Comments
 (0)