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

Doctrine 2

266
199
+ 1
31
Hibernate

1.4K
1K
+ 1
27
Add tool

Doctrine 2 vs Hibernate: What are the differences?

Developers describe Doctrine 2 as "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. On the other hand, Hibernate is detailed as "Idiomatic persistence for Java and relational databases". Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.

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

"Great abstraction, easy to use, good docs" is the primary reason why developers consider Doctrine 2 over the competitors, whereas "Easy ORM" was stated as the key factor in picking Hibernate.

According to the StackShare community, Hibernate has a broader approval, being mentioned in 87 company stacks & 74 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 StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Doctrine 2
Pros of Hibernate
  • 14
    Great abstraction, easy to use, good docs
  • 10
    Object-Oriented
  • 7
    Easy setup
  • 19
    Easy ORM
  • 7
    Easy transaction definition
  • 1
    Is integrated with spring jpa

Sign up to add or upvote prosMake informed product decisions

Cons of Doctrine 2
Cons of Hibernate
    Be the first to leave a con
    • 3
      Can't control proxy associations when entity graph used

    Sign up to add or upvote consMake informed product decisions

    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 Hibernate?

    Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.

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

    Jobs that mention Doctrine 2 and Hibernate as a desired skillset
    CBRE
    United States of America Massachusetts Boston
    CBRE
    United States of America Massachusetts Boston
    CBRE
    United States of America Massachusetts Boston
    CBRE
    United States of America Massachusetts Boston
    What companies use Doctrine 2?
    What companies use Hibernate?
    See which teams inside your own company are using Doctrine 2 or Hibernate.
    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 Hibernate?

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

    Blog Posts

    What are some alternatives to Doctrine 2 and Hibernate?
    Propel
    Propel provides a GPU-backed numpy-like infrastructure for scientific computing in JavaScript.
    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.
    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.
    Dapper
    It is an object-relational mapping product for the Microsoft.NET platform: it provides a framework for mapping an object-oriented domain model to a traditional relational database.
    See all alternatives