Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down