Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Doctrine orm reverse engineering wrapper
mcmaroon
post 20.11.2017, 23:34:21
Post #1





Grupa: Zarejestrowani
Postów: 11
Pomógł: 5
Dołączył: 30.11.2016

Ostrzeżenie: (0%)
-----


Witam serdecznie,
popełniłem nakładkę na
http://docs.doctrine-project.org/projects/...rse-engineering
A tu link do github
https://github.com/mcmaroon/doctrine-orm-convert-mapping
Czemu ? Ponieważ
Cytat
Reverse Engineering is a one-time process that can get you started with a project. Converting an existing database schema into mapping files only detects about 70-80% of the necessary mapping information. Additionally the detection from an existing database cannot detect inverse associations, inheritance types, entities with foreign keys as primary keys and many of the semantical operations on associations such as cascade.


Co w praktyce oznacza że gdy chcę zmapować do encji bazę niezwiązaną z orm to dostanę same Exceptions związane z enumami, brakiem np primary key itd a ja chciałem żeby skrypt wyrzucił to co potrafi i tyle.
Mapowanie bazy do encji
Kod
php run.php app:convert-mapping --help

Opcjonalna komenda to wersjonowania struktury bazy na podstawie encji
Kod
php run.php app:schema --help


Pisane na potrzeby własne ale może komuś się spodoba.
Pozdrawiam
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 19.03.2024 - 11:43