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

Doctrine 2

250
185
+ 1
31
Sequelize

612
1.1K
+ 1
104
Add tool

Doctrine 2 vs Sequelize: What are the differences?

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; Sequelize: Easy-to-use multi sql dialect ORM for Node.js & io.js. Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.

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

"Great abstraction, easy to use, good docs" is the top reason why over 9 developers like Doctrine 2, while over 17 developers mention "Good ORM for node.js" as the leading cause for choosing Sequelize.

Sequelize is an open source tool with 19.2K GitHub stars and 3.01K GitHub forks. Here's a link to Sequelize's open source repository on GitHub.

According to the StackShare community, Sequelize has a broader approval, being mentioned in 38 company stacks & 33 developers stacks; compared to Doctrine 2, which is listed in 35 company stacks and 12 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Doctrine 2
Pros of Sequelize
  • 14
    Great abstraction, easy to use, good docs
  • 10
    Object-Oriented
  • 7
    Easy setup
  • 33
    Good ORM for node.js
  • 25
    Easy setup
  • 14
    Support MySQL & MariaDB, PostgreSQL, MSSQL, Sqlite
  • 11
    Open source
  • 10
    Free
  • 8
    Promise Based
  • 2
    Atrocious documentation, buggy, issues closed by bots
  • 1
    Recommend for mongoose users

Sign up to add or upvote prosMake informed product decisions

Cons of Doctrine 2
Cons of Sequelize
    Be the first to leave a con
    • 25
      Docs are awful
    • 5
      Relations can be confusing

    Sign up to add or upvote consMake 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 Sequelize?

    Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.

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

    Jobs that mention Doctrine 2 and Sequelize as a desired skillset
    What companies use Doctrine 2?
    What companies use Sequelize?
    See which teams inside your own company are using Doctrine 2 or Sequelize.
    Sign up for Private StackShareLearn More

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

    What tools integrate with Doctrine 2?
    What tools integrate with Sequelize?

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

    What are some alternatives to Doctrine 2 and Sequelize?
    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.
    SQLAlchemy
    SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.
    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.
    Entity Framework Core
    It is a lightweight, extensible, open source and cross-platform version of the popular Entity Framework data access technology. It can serve as an object-relational mapper (O/RM), enabling .NET developers to work with a database using .NET objects, and eliminating the need for most of the data-access code they usually need to write.
    See all alternatives