Download the PHP package gordinskiy/doctrine-fluent-mapping-bundle without Composer
On this page you can find all versions of the php package gordinskiy/doctrine-fluent-mapping-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gordinskiy/doctrine-fluent-mapping-bundle
More information about gordinskiy/doctrine-fluent-mapping-bundle
Files in gordinskiy/doctrine-fluent-mapping-bundle
Package doctrine-fluent-mapping-bundle
Short Description Symfony Bundle for Fluent Mapping Driver from laravel-doctrine
License MIT
Informations about the package doctrine-fluent-mapping-bundle
Doctrine Fluent Mapping Bundle
Symfony Bundle for laravel-doctrine/fluent
that provide alternative PHP Mapping Driver for Doctrine ORM.
Works as extension for doctrine/DoctrineBundle.
How It Works
Doctrine provides the ability to implement your own mapping driver
(Documentation).
Fluent Mapping Driver - Doctrine mapping driver implementation from authors of
laravel-doctrine/orm
(Documentation).
allows you to manage your mappings in an Object Oriented approach, separating your entities from your mapping configuration without the need for configuration files like XML or YAML.
Despite the vendor name, this package does not contain any dependency on Laravel framework or its components.
DoctrineBundle - Symfony bundle that provides integration of Doctrine projects with Symfony framework (Documentation).
DoctrineFluentMappingBundle configures Fluent Mapping Driver and registers it as default mapping driver for DoctrineBundle by replacing definition of doctrine.orm.default_metadata_driver.
Installation
Run this command in your terminal:
composer require gordinskiy/doctrine-fluent-mapping-bundle
If you don't use Symfony Flex, you must enable the bundle manually in the application:
Configuration
Create config/packages/doctrine_fluent.yaml
file and list your entity mappings in it:
Configure by directories list
You can also configure mappings by directories list:
You can use absolute paths or paths relative to the project root directory.
All classes in these directories that implement Mapping interface will be automatically registered as mappings.