Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2015-07-02 (1 year ago) | | Not yet rated by the users | | Total: 94 | | All time: 8,482 This week: 1,113 |
|
Description | | Author |
This class sets a naming strategy for Doctring mapping dots.
It extends the Doctrine NamingStrategy class to define how to map between database table names and property fields.
Basically it maps dots to underscores. It may also change the case of fields to upper or lower case. Innovation Award
August 2015
Number 9 |
Doctrine is a PHP Object-Relational Mapping package that is used by PHP developers to store and retrieve objects in databases.
It provides means to define how objects and properties are mapped to database tables and fields.
This class implements a common mapping strategy for used with Doctrine ORM to map objects to table and field names.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 1x |
|
Details
Doctrine ORM DotNamingStrategy
Automatic table names conversion from schema.name
to schema_name
, ie. change
database connection from postgresql to mysql.
Symfony2
You must set this class as service in container
<parameters>
<parameter key="doctrine.orm.naming_strategy.dot.class">Fluency\Component\Doctrine\ORM\Mapping\DotNamingStrategy</parameter>
</parameters>
<services>
...
<service id="doctrine.orm.naming_strategy.dot"
class="%doctrine.orm.naming_strategy.dot.class%" public="false" />
...
</services>
Orm settings
...
orm:
auto_generate_proxy_classes: %kernel.debug%
# auto_mapping: true
default_entity_manager: default
entity_managers:
default:
connection: default
naming_strategy: doctrine.orm.naming_strategy.dot
...
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.