All quizzes
Free quiz · 20 questions in the bank

Doctrine quiz

Test your Doctrine knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What is Doctrine DBAL (Database Abstraction Layer), and how does it relate to Doctrine ORM?

In this round
  1. What is Doctrine DBAL (Database Abstraction Layer), and how does it relate to Doctrine ORM?
  2. What is the difference between `persist()` and `flush()` on Doctrine's EntityManager?
  3. What is a common performance pitfall related to Doctrine's default lazy-loading behavior when iterating over a collection of entities and accessing each one's related data?
  4. What is the purpose of the `#[ORM\Id]` and `#[ORM\GeneratedValue]` attributes typically applied to an entity's primary key property?
  5. What is the purpose of Doctrine Migrations (the `doctrine/migrations` package)?
  6. What is "lazy loading" in the context of Doctrine associations, and what problem does it help address?
  7. What is Doctrine (Doctrine ORM)?
  8. What are Doctrine "associations" (relationships), and how are they typically declared between entities?
  9. What is Doctrine Query Language (DQL), and how does it relate to raw SQL?
  10. What is the purpose of Doctrine's "identity map" pattern within a single request/EntityManager session?
  11. What is a "repository" in Doctrine, and what is its typical role?
  12. What is Doctrine's "Unit of Work" pattern, and what problem does it solve?
Gaps to close?
Read the curated Doctrine notes — core concepts, patterns, interview prep.
Doctrine notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web