From dcc3bb1082d06308e68bb710fb8b7ce20b16fb2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20P=C3=A9tremann?= Date: Mon, 21 Sep 2020 16:41:36 +0200 Subject: [PATCH] Update doc for compound ref entity names --- docs/cookbook.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/cookbook.md b/docs/cookbook.md index 4b236f4d..48efefb7 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -31,6 +31,20 @@ class Supplier extends AbstractCustomEntity } ``` +**Note**: If your reference entity is made up of 2 words (eg. `SuperHero`), be sure to override this method in your file: +```php +/** + * Returns the custom entity name used in the configuration + * Used to map row actions on datagrid + * + * @return string + */ +public function getCustomEntityName(): string +{ + return 'superHero'; +} +``` + Then, create the doctrine mapping for this entity to declare the entity fields and table name where the entity will be persisted. ```yaml