Custom Entities¶
When you need to add functionality that is not in the system, like an advertising campaign, then you need your own, custom entities.
- The system is prepared and configured for custom entities.
The configuration is placed in doctrine.yaml, sectiondoctrine.orm.mappings
. - An entity should be in namespace
App\Model
(directorysrc/Model
). - We use annotations for Doctrine mapping.
More in annotations reference. - And maybe you are also interested in entity extension.
Cookbook¶
For step-by-step instructions on how to add a new entity to your project, follow "Adding a new entity" cookbook.