Comments (8)
Before we deprecate something, we must stop using it ourselves, which means you have to create a PR that replaces all usages of the Database
class with Doctrine.
from contao.
Really? Just because of the debug bar output?
from contao.
@aschempp What do you mean?
from contao.
Well if we don't mark the class as deprecated, neither we nor the developers will get a suggestion to use Doctrine… You know it's almost impossible to rewrite everything at once.
from contao.
First of all, it is not impossible. It might be a large PR but that's manageable.
Second of all, if we deprecate the class but continue to use it ourselves, people will be confused and uncertain of our deprecation policy.
from contao.
Of course we can deprecate it and move to doctrine then.
The only thing is, we MUST NOT use it for new code.
The migration away will take a significant amount of time, do you really want people to continue to use it in future code just because we did not deprecate it because we still use it in legacy code that is subject to removal anyway?
from contao.
Before we definitely know that Doctrine DBAL is suited to replace the database class (which I doubt because of the features that the database class implements), the class is not subject to removal at all.
from contao.
I wonder which features you are referring to here that should be missing by using the plain doctrine database.
Granted, some things are missing but these are merely syntactic sugar like the reset and loop over again.
However I always was hesitant to use this for sake of memory usage (as the results were always buffered). When I want to buffer them and loop over again and again, I buffer them locally and not in the fetched result.
Therefore these "missing" features are easy to cope with (in fact I see the removal of these features as feature on it's own).
from contao.
Related Issues (20)
- OPCache preloading issues HOT 1
- Problems with event reader in combination with newslist HOT 4
- Problem with empty newsletter recipients HOT 1
- Error when trying to add elements to the new element-group element (as non-admin) in news or events HOT 2
- `Input::get()` no longer works to retrieve passed parameters in the `{{file::*}}` insert tag HOT 1
- Empty session check misses data HOT 2
- Question regarding the new JavaScript pagination within content elements HOT 12
- Firefox does not display the line lines in lists, e.g. for members HOT 6
- Dropdown to select a stylesheet file for the syntax highlighting in a code content element HOT 2
- Wrong single quote encoding on email (') HOT 3
- Inserttag {{link_url::7}} gets the wrong output if the page (with id 7) has 'Require an item' enabled HOT 6
- Concept of AutoFallbackTransport flawed HOT 4
- Install tool: Page Not Found after update to 4.13.44 HOT 8
- Large number of old files in `assets/images/deferred/` HOT 3
- Orphaned temporary ini files in /tmp, when using workers via contao:cron HOT 23
- Spanish backend language files are not loaded HOT 5
- Feature request : exclude /api routes from being stored as referrer HOT 4
- Add raw numbers to Pagination template HOT 1
- Feature Request: Place multiple customized swiper elements on a page HOT 6
- 2FA - guest and logged in at same time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contao.