-
Notifications
You must be signed in to change notification settings - Fork 101
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
Chop up the package #238
Comments
I'd probably not chop it all the way to single-class packages if I were you but I don't really mind either. 👍
possibly just kdyby/doctrine-dql? By the way this will need some thinking because the EntityRepository contains a fetch method for QueryObject and you want to drop the Persistence namespace which contains an interface for QueryObject used by fetch. Possibly kdyby/doctrine-query-object would depend on this package? (Certainly not the other way around.)
I'd maybe use multiple traits for the different features.
I don't use any of the features you want to drop. Or at least I don't think I am. So 👍 for that. :-) |
Oh and anything console-related should probably be separated as well - and the kdyby/console dependency should be dropped. What do you think? |
Also I'd like to be able to remove kdyby/events from my projects completely. Any chance of kdyby/doctrine not depending on it? EDIT: Sorry if this is a wrong place to ask for it. Should I open a new issue? |
Why not just |
That should be removed. It doesn't really make any sense to have the fetch method on repository, since PHP doesn't know generics. The
Exactly :)
Discuss that here please #190.
Definitely new issue, I might be in for an optional switch between symfony-something and kdyby/events... But... new issue :) @juniwalk well, people are almost iracionally obsessed with minimalism theese days, but chopping it up doesn't really hurt anything (except maintenance cost)... Also, if it has strictly defined name like |
@fprochazka quilty as charged, I do love minimalism :D |
👍 |
@fprochazka Can I help with something? |
@foxycode well, the tasks require a lot of "management work", so if you wanna help, I'd encourage you to start with the code cleanup, which means dropping theese (preferably in several pullrequests, not in one)
|
@fprochazka I think ancient PRs and issues that are no longer relevant should be cleared too. Also after chopping up some of them may become irrelevant as they would be for code in different repository. |
@fprochazka Ok, I look into it. |
@fprochazka I have first commit prepared. I'm not sure how to make PR separate from #243, Do I need to create own branch or is there simpler way? |
@foxycode yes, creating PR's from master is an anti-pattern. You should create new branch for each PR. |
If somebody wants to help, here are some usefull tasks https://github.com/Kdyby/DoctrineDbalBatchImport/issues |
TODO: optional dependencies
|
Is this still in progress? |
It's still planned, but I have very little time currently. |
@fprochazka I think we should split doctrine/dbal integration into its own package as well. Sometimes I want to only use the DBAL without the ORM. What do you think? |
@enumag I'm not against it. Let me think about that. |
TBD: throw away QO and suggest https://github.com/librette/doctrine-queries ? |
will be removed, once the bridge is extracted [#238]
More clear separation of repository magic would be nice #182 |
If we ignore the extra functionality, that will be extracted to separate packages (I consider a pretty straightforward problem), I have an updated proposal: The Plan
Open questions:queries higlightingidea:
or
I will probably do it the second way because it's way easier |
Motivation:
Doctrine can be used without the suggar added by Kdyby and the suggar should be usable in projects that are not using Nette.
Splitting the package makes easier having control over what is in your project and also benefits sf and other framework users.
Todo:
EntityRepository
(possibly as a trait, to allow mixing more repository features to default one, without extensive rape of inheritance)QueryBuilder
(maybe create another repo for this one and make the repositories repo depend on it?)QueryObject
ResultSet
EmptyResultSet
QueryObject
, kterej bude přijímat EM už v konstruktoruRuntimeReflectionService
Kdyby\Doctrine\Helpers::executeBatch()
Kdyby\Doctrine\Helpers::loadFromFile()
Provider
interfacesThe text was updated successfully, but these errors were encountered: