Get Advice Icon

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

Doctrine 2
Doctrine 2

184
136
+ 1
24
Hibernate
Hibernate

704
503
+ 1
16
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.

- No public GitHub repository available -
- 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 Hibernate?

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

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

Why do developers choose Doctrine 2?
Why do developers choose Hibernate?
    Be the first to leave a con
      Be the first to leave a con
      Jobs that mention Doctrine 2 and Hibernate as a desired skillset
      What companies use Doctrine 2?
      What companies use Hibernate?

      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

      What are some alternatives to Doctrine 2 and Hibernate?
      Propel
      Propel provides a GPU-backed numpy-like infrastructure for scientific computing in JavaScript.
      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.
      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
      Decisions about Doctrine 2 and Hibernate
      No stack decisions found
      Interest over time
      Reviews of Doctrine 2 and Hibernate
      No reviews found
      How developers use Doctrine 2 and Hibernate
      Avatar of Kang Hyeon Ku
      Kang Hyeon Ku uses HibernateHibernate

      Mybatis ๋กœ ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค๊ณ  ์กฐ๊ฑด๋ถ„ ๋ถ„๊ธฐ์‹ for ๋ฌธ์„ ์ฟผ๋ฆฌ์— ๋‹ฌ์•„ ๋”์ด์ƒ ์ฟผ๋ฆฌ๋ฅผ ์•Œ์•„ ๋ณผ ์ˆ˜ ์—†๊ฒŒ ๋˜์—ˆ์„๋•Œ ์ด๊ฒŒ ์˜๋งˆ๊ฐ€ ์žˆ๋‚˜ ์‹ถ์—ˆ๋‹ค. ๊ทธ ๋•Œ ํ•œ๋ฒˆ orm ์„ ์จ๋ณด๋ฉด ์–ด๋–จ๊นŒ ์‹ถ์–ด ์ตœ๊ทผ์— ๋ฐฐ์šฐ๊ธฐ ์‹œ์ž‘ํ•œ orm ์ด๋‹ค. ์ •๋ง ํŽธํ•˜๊ฒŒ ๊ฐœ๋ฐœ์„ ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ ์ผ์กฐํ•˜๊ณ  ์žˆ๋‹ค. ๋‹ค๋งŒ ๊ฒฐ๊ตญ์— ์ฟผ๋ฆฌ๋ฅผ ๋‚ ๋ ค ๋งตํ•‘์„ ํ•˜๋Š”๋ฐ, ์ฟผ๋ฆฌ๋ฅผ ์ž˜ ๋ชจ๋ฅด๊ฑฐ๋‚˜ ๊ทธ์— ๋Œ€ํ•œ ์ง€์‹ ์—†์ด ์“ฐ๋‹ค๊ฐ€๋Š” ๋งํ•˜๊ฒ ๊ตฌ๋‚˜ ํ•˜๋Š” ์ƒ๊ฐ์ด ๋งŽ์ด ๋“ค์—ˆ๋‹ค.

      Avatar of Analytical Informatics
      Analytical Informatics uses HibernateHibernate

      We use a Clojure-powered wrapper around Hibernate to provide an ORM access to our data store for applications, as well as offering SSO integration and HIPAA logging functionality.

      Avatar of Tongliang Liu
      Tongliang Liu uses HibernateHibernate

      Can't escape from when you're on the Java stack and deal with relational db.

      Avatar of Satoru Ishikawa
      Satoru Ishikawa uses HibernateHibernate

      Strut ใ‚„ Spring ใชใฉ Java web app flame work ใงใฎ Object Relation Mapperใจใ—ใฆ

      Avatar of icarus-dave
      icarus-dave uses HibernateHibernate

      Persistence layer for backend data; maps entities to the database.

      Avatar of Itbid
      Itbid uses Doctrine 2Doctrine 2

      ORM Layer para acceso a datos en la aplicaciรณn ITBID

      How much does Doctrine 2 cost?
      How much does Hibernate cost?
      Pricing unavailable
      Pricing unavailable
      News about Doctrine 2
      More news