New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of doctrine-orm-module #2
Comments
Hi! In this step I have moved a lot of code from DoctrineOrmModule.. In the second time I will try to remove DoctrineOrm.. :) Now doctrineormmodule work without migrations deps Sorry but it's an hard work eheh |
@gianarb Hi, do you have a time schedule for the next step? Does it make sense if I start working on it? I won't have so much time this month (I move to a new city) but maybe I find some time to have a look. |
In this moment I have not idea.. :) I'm studying a good method to do this process.. have you proposals? |
I need to have look at the source first. What exactly are the problems in the process? Hard dependencies between migrations and doctrineormmodule? |
Yes, if you try to search ORM in this repository you will see that there are few references between this two module.. In this moment I have not any project that use migrations.. this is the truth 👷 |
:-) ok. I have two apps running in production which both use ORM + migrations and two open source apps which use doctrine/dbal + migrations. So I have some apps available to perform tests. |
eheh thanks! Would you share with me your two open source project that use only migrations? :) |
sure. Using the second one is not so easy because it is under heavy development so I suggest you start with the first one and if it works I can try to include it in my second app. |
Perfect.. I wait your feedback! :) |
I had a look at the sources ...
Currently I see no chance of getting rid of the dependency. IMHO migrations must continue to be part of DoctrineORMModule beause they are tightly coupled through doctrine. |
Thanks for this feedback.. In my opinion we can split DoctrineORM not for your case but for another implementation.
What do you think? |
From your POV it makes sense. Not every project needs the migration functionality, but for the MigrationsModule itself it makes no sense. In theory yes. I mean I like the idea, but I think these hard dependencies listed above make it impossible to split migrations in a clean way. Look at the current source of your module. What do you have? Two factories and a module listener which injects the migrations commands. The CLI is provided by DoctrineModule, the connection by DoctrineORMModule, the Driver by DoctrineModule, the EntityManager by DoctrineORMModule, and so on. I think you get the point. The logic or pre conditions are spread over two modules and DoctrineMigrationsModule would depend on both. Most of the maintenace work has to be done in the other modules anyway, so what is the real advantage of splitting the migrations? The existence of the migrations package as part of the ORM has no impact. If you need it, it is their and if not, you don't have to use it. |
Hi @codeliner thanks for this issue!! :) It's very important for me your feedback! :) DoctrineORMModule will maintain doctrine\migrations :) Thanks PS sorry I don't know your twitter name |
@gianarb thanks for the info. good decision 👍 PS you can't know my twitter name, because I have no account on twitter :-). Maybe it is time to create one ... |
Very hard search ihih |
@gianarb Sorry, I was not able to test it today. I need to resolve some dependency issues first. I hope I find the time tomorrow.
But what I've already seen is that the repo continues to depend on doctrine-orm-module. So actually it won't add much benefit. Is it possible to reduce dependency to the DoctrineModule only?
The text was updated successfully, but these errors were encountered: