edmondscommerce / doctrine-static-meta

An implementation of Doctrine using the PHP Static Meta Data driver and no annotations
MIT License
2 stars 0 forks source link
code-generation code-generator database doctrine doctrine-orm experimental idea php php7

Doctrine Static Meta

By Edmonds Commerce

Codacy Badge

Scrutinizer Code Quality

Code Intelligence Status

Maintainability

An implementation of Doctrine using the PHP Static Meta Data driver and no annotations.

This library includes extensive traits and interfaces and also full code generation allowing you to set up a project quickly.

Install

composer require edmondscommerce/typesafe-functions dev-master@dev
composer require gossi/php-code-generator "^0.5.0" --dev
composer require sebastian/diff ^3.0 --dev
composer require edmondscommerce/doctrine-static-meta dev-master@dev

Limitations

Whilst this is now at a stage where we are using it in production, it is still a work in progress.

Suggested .my.cnf File

As DSM is using binary ID columns, it is worth customising your .my.cnf file to make this easier to work with

[mysql]
auto-rehash
binary-as-hex = true                                                                                              
[client]
user=root
password=YOURPASSWORDHERE

Further Reading

Documentation is still very much a work in progress...

Have a look in the docs Folder