Giter VIP home page Giter VIP logo

doctrine1's Introduction

Doctrine 1

Build Status

This is a fork of doctrine/doctrine1, adjusted for compatibility with php 5.3-7.4 and mysql 5.7 and 8.0. Tested only with mysql.

It will be maintained as long as we are using it. Feel free to submit your Issues and Pull Requests.

There are also some performance tweaks and features added, i.a.:

  • [BC BREAK] modified doctrine collection & record serialization - store less data in cache, but losing the feature of keeping state of modified data
  • [BC BREAK] fixed orderBy handling in relations - for ordering m2m relations by columns in refClass use refOrderBy!
  • refactored link/unlink methods in Doctrine_Record - now they do not load whole relations before linking/unlinking
  • added postRelatedSave hook in Record to be called on save, after all relations are also saved (original postSave method is called before any relation is saved)
  • Added Doctrine_Query_Abstract::getDqlWithParams - returns the DQL query that is represented by this query object, with interpolated param values, and modified Doctrine_Connection to use PDO::quote for quoting string whenever possible
  • queryCache reworked:
    • hook it in getSqlQuery method instead of execute method only (better cache usage)
    • added rootAlias, sqlParts (without offset or limit), isLimitSubqueryUsed and limitSubquery to cache
    • always prequery the query in getSqlQuery to call dql callbacks before any sql is generated, not only on execute(), so that cache hash is always calculated properly, and that this method always returns actual end-query incl. any modifications from dql callbacks
    • added isQueryCacheEnabled() method
    • cache queries without limit and offset (to save less cache records) - added Doctrine_Core::ATTR_QUERY_CACHE_NO_OFFSET_LIMIT - set to true to enable the feature
    • added parent query components for subqueries, to indicate subquery context - changing cache hash
    • WHERE IN adjustments for better caching and performance
  • Limit subquery adjustments for mysql 5.7 and performance

These are only highlights, full changelog here.

Installation:

composer require ovos/doctrine1

doctrine1's People

Contributors

falkenhawk avatar marcing avatar jwage avatar eabay avatar estahn avatar beberlei avatar guilhermeblanco avatar dominics avatar johnkary avatar jagalan avatar klaussilveira avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.