PHPackages                             ovos/doctrine1 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. ovos/doctrine1

ActiveLibrary[Database &amp; ORM](/categories/database)

ovos/doctrine1
==============

Doctrine v1, Database ORM, PHP 5.3-8.2 compatible

v1.3.4(3y ago)016.5k↓80.5%2[7 PRs](https://github.com/ovos/doctrine1/pulls)LGPL-2.1-or-laterPHPPHP &gt;=5.3.3

Since Apr 1Pushed 1y ago6 watchersCompare

[ Source](https://github.com/ovos/doctrine1)[ Packagist](https://packagist.org/packages/ovos/doctrine1)[ Docs](http://www.doctrine-project.org)[ RSS](/packages/ovos-doctrine1/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)DependenciesVersions (14)Used By (0)

Doctrine 1
==========

[](#doctrine-1)

[![Build Status](https://camo.githubusercontent.com/2cfc62ba21681e64386361b149cb7b472b1577468c06b46d9c6b8537c7fde40a/68747470733a2f2f7472617669732d63692e636f6d2f6f766f732f646f637472696e65312e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/ovos/doctrine1)

#### [Documentation](https://www.doctrine-project.org/projects/doctrine1/en/latest/index.html) ↗

[](#documentation-)

This is a fork of [doctrine/doctrine1](https://github.com/doctrine/doctrine1), adjusted for compatibility with php 5.3-8.3 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](https://github.com/ovos/doctrine1/issues) and [Pull Requests](https://github.com/ovos/doctrine1/pulls).

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

- **\[BC BREAK\]** modified doctrine collection &amp; 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](CHANGELOG.md).

### Installation:

[](#installation)

```
composer require ovos/doctrine1

```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 62.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~770 days

Recently: every ~309 days

Total

6

Last Release

1356d ago

PHP version history (2 changes)v1.2.5PHP &gt;=5.2.3

v1.3.0PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ce9ecff7a43a4ac38a99f7854d69719eedcf790bdee5f823e90a932c0fba20e?d=identicon)[falkenhawk](/maintainers/falkenhawk)

---

Top Contributors

[![falkenhawk](https://avatars.githubusercontent.com/u/14310995?v=4)](https://github.com/falkenhawk "falkenhawk (92 commits)")[![marcing](https://avatars.githubusercontent.com/u/190209?v=4)](https://github.com/marcing "marcing (19 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (15 commits)")[![eabay](https://avatars.githubusercontent.com/u/158772?v=4)](https://github.com/eabay "eabay (6 commits)")[![estahn](https://avatars.githubusercontent.com/u/362174?v=4)](https://github.com/estahn "estahn (5 commits)")[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (4 commits)")[![guilhermeblanco](https://avatars.githubusercontent.com/u/208883?v=4)](https://github.com/guilhermeblanco "guilhermeblanco (2 commits)")[![jagalan](https://avatars.githubusercontent.com/u/378526?v=4)](https://github.com/jagalan "jagalan (1 commits)")[![johnkary](https://avatars.githubusercontent.com/u/135607?v=4)](https://github.com/johnkary "johnkary (1 commits)")[![klaussilveira](https://avatars.githubusercontent.com/u/467729?v=4)](https://github.com/klaussilveira "klaussilveira (1 commits)")[![dominics](https://avatars.githubusercontent.com/u/97427?v=4)](https://github.com/dominics "dominics (1 commits)")

---

Tags

phpdatabaseormdoctrine1

### Embed Badge

![Health badge](/badges/ovos-doctrine1/health.svg)

```
[![Health](https://phpackages.com/badges/ovos-doctrine1/health.svg)](https://phpackages.com/packages/ovos-doctrine1)
```

###  Alternatives

[friendsofsymfony1/doctrine1

PHP Database ORM for Symfony1. Do NOT use for new projects: please move to a newest Symfony release and Doctrine2

40685.2k](/packages/friendsofsymfony1-doctrine1)[modul-is/orm

Lightweight hybrid ORM/Explorer

1119.0k](/packages/modul-is-orm)[bauer01/unimapper

Universal mapping tool for collecting data from different sources

102.6k6](/packages/bauer01-unimapper)[riverside/php-orm

PHP ORM micro-library and query builder

121.3k](/packages/riverside-php-orm)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
