md-netdesign / contao-entities
Mapped doctrine entities inside the Contao backend.
Installs: 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^8.0
- contao/core-bundle: ^4.12
- md-netdesign/auto-type: ^1.2
- symfony/config: ^5.3
- symfony/dependency-injection: ^5.3
- symfony/http-kernel: ^5.3
- twig/twig: ^3.3
This package is auto-updated.
Last update: 2025-04-24 10:50:45 UTC
README
Mapped doctrine entities inside the Contao backend.
Config
You'll have to add the following minimal configuration after installing this bundle to use it.
config/config.yml
doctrine: orm: auto_generate_proxy_classes: '%kernel.debug%' entity_managers: default: mappings: App\Entity: type: attribute dir: '%kernel.project_dir%/src/Entity' is_bundle: false prefix: App\Entity alias: App dbal: types: contao_file: MdNetdesign\ContaoEntities\Data\Entity\Type\ContaoFileType contao_files: MdNetdesign\ContaoEntities\Data\Entity\Type\ContaoFilesType
twig: globals: contaoEntitiesFormTheme: 'form/custom.html.twig'
config/routes.yaml
contao_entities.controller: resource: '@ContaoEntities/Resources/config/routes.yaml'