Need advice about which tool to choose?Ask the StackShare community!

Doctrine 2

275
207
+ 1
31
MikroORM

16
67
+ 1
24
Add tool

Doctrine 2 vs MikroORM: What are the differences?

What is Doctrine 2? An object-relational mapper (ORM) for PHP 5.3.2+ that provides transparent persistence for PHP objects. Doctrine 2 sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL.

What is MikroORM? TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases.

Doctrine 2 and MikroORM can be categorized as "Object Relational Mapper (ORM)" tools.

MikroORM is an open source tool with 705 GitHub stars and 40 GitHub forks. Here's a link to MikroORM's open source repository on GitHub.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Doctrine 2
Pros of MikroORM
  • 14
    Great abstraction, easy to use, good docs
  • 10
    Object-Oriented
  • 7
    Easy setup
  • 5
    Typescript
  • 4
    Supports both SQL and NoSQL
  • 3
    Powered by Unit of Work and Identity Map
  • 3
    Allows multiple ways to define entities
  • 3
    DRY Entities
  • 2
    Implicit Transactions
  • 2
    SQL layer built on top of Knex
  • 2
    EntityGenerator to reverse engineer existing database

Sign up to add or upvote prosMake informed product decisions

- No public GitHub repository available -

What is Doctrine 2?

Doctrine 2 sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL.

What is MikroORM?

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Doctrine 2?
What companies use MikroORM?
See which teams inside your own company are using Doctrine 2 or MikroORM.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Doctrine 2?
What tools integrate with MikroORM?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Doctrine 2 and MikroORM?
Propel
Propel provides a GPU-backed numpy-like infrastructure for scientific computing in JavaScript.
Hibernate
Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.
Entity Framework
It is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects. It eliminates the need for most of the data-access code that developers usually need to write.
SQLAlchemy
SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
Prisma
Prisma is an open-source database toolkit. It replaces traditional ORMs and makes database access easy with an auto-generated query builder for TypeScript & Node.js.
See all alternatives