Open emahuni opened 8 years ago
Also having this issue.
Managed to get it working by copying the 'laravel5-exporter' folder from '/vendor/vitalibr/' into '/vendor/mysql-workbench-schema-exporter'.
Did the same as @th3d0g and worked !
A pity that no one seems to be maintaining this package!
Thanks a lot it worked like a charm
I am not sure how this is supposed to work, but according to what is written in the readme; it's not working.
I installed this package using composer as instructed and noticed that it had also installed the workbench exporter. then ran
vendor\bin\mysql-workbench-schema-export --list-exporter
from the installation root folder. and got:Supported exporter: ERROR: No formatters found. Formatters are separate projects which need to be installed via composer. You can find all formatters at https://github.com/mysql-workbench-schema-exporter. Example: php composer.phar require --dev mysql-workbench-schema-exporter/doctrine2-exporter
Then I tried the above example and got worse error...
I then tried (after copying test.mwb to root installation folder):
vendor\bin\mysql-workbench-schema-export --export=vitalibr/laravel5-exporter test.mwb ./generated
and it spit another error:
Error: Unknown formatter "vitalibr/laravel5-exporter".
Can you please write a better usage example and correct me on my mistakes if this works at all.
I am using php 7.0.1 and latest composer version at the time of writting. But I don't see how they could be affecting the code.