PHPackages                             ride/app-orm-doctrine - 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. ride/app-orm-doctrine

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

ride/app-orm-doctrine
=====================

Integrates Doctrine ORM into Ride framework.

1.3.x-dev(11y ago)012MITPHP

Since Oct 3Pushed 11y ago9 watchersCompare

[ Source](https://github.com/all-ride/ride-app-orm-doctrine)[ Packagist](https://packagist.org/packages/ride/app-orm-doctrine)[ RSS](/packages/ride-app-orm-doctrine/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Ride: Doctrine ORM
==================

[](#ride-doctrine-orm)

This module integrates the Doctrine ORM into the Ride framework.

Installation
------------

[](#installation)

```
composer require ride/app-orm-doctrine:dev-master

```

Configuration
-------------

[](#configuration)

```
# application/config/parameters.json
{
    "doctrine": {
        "dbal": {
            "connections": {
                "default": {
                    "dsn": "mysql://user:pass@host/database"
                }
            }
        },
        "orm": {
            "entity_managers": {
                "default": {
                    "connection": "default"
                }
            }
        }
    }
}
```

Available Commands
------------------

[](#available-commands)

```
doctrine convert-mapping [--filter] [--force] [--from-database] [--extend] [--num-spaces] [--namespace] [--em]
doctrine ensure-production-settings [--complete] [--em]
doctrine generate entities [--filter] [--generate-annotations] [--generate-methods] [--regenerate-entities] [--update-entities] [--extend] [--num-spaces] [--no-backup] [--em]
doctrine generate proxies [--filter] [--em] []
doctrine generate repositories [--filter] [--em]
doctrine info [--em]
doctrine run dql [--hydrate] [--first-result] [--max-result] [--depth] [--em]
doctrine schema create [--dump-sql] [--em]
doctrine schema drop [--dump-sql] [--force] [--full-database] [--em]
doctrine schema update [--complete] [--dump-sql] [--force] [--em]
doctrine schema validate [--skip-mapping] [--skip-sync] [--em]
```

To set the specific entity manager to use specify this using the --em flag.

Usage
-----

[](#usage)

Define your entities inside the 'entity' directory inside your module:

```
# src/ride/application/entity/MyEntity.php
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity()
 */
class MyEntity {

    /**
     * @ORM\Id()
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

}
```

Verify your entities are found using:

```
php application/cli.php doctrine info
```

Create your database schema using the CLI:

```
php application/cli.php doctrine schema create
```

Inject ManagerRegistry where you want to use Doctrine

```
# src/ride/application/controller/IndexController.php
class IndexController {

    public function __construct(ManagerRegistry $registry) {
        $this->registry = $registry;
    }

    public function indexAction() {
        $em = $this->registry->getManager();

        $em->persist(new MyEntity());
        $em->flush();
    }

}
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

5

Last Release

4290d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/673789?v=4)[Ignace](/maintainers/ignace)[@ignace](https://github.com/ignace)

---

Top Contributors

[![ignace](https://avatars.githubusercontent.com/u/673789?v=4)](https://github.com/ignace "ignace (3 commits)")[![brendt](https://avatars.githubusercontent.com/u/6905297?v=4)](https://github.com/brendt "brendt (1 commits)")

### Embed Badge

![Health badge](/badges/ride-app-orm-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/ride-app-orm-doctrine/health.svg)](https://phpackages.com/packages/ride-app-orm-doctrine)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[api-platform/doctrine-orm

Doctrine ORM bridge

294.4M90](/packages/api-platform-doctrine-orm)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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