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/5Score 0

What is the purpose of Doctrine Migrations (the `doctrine/migrations` package)?

Questions in this quiz
  1. What is the purpose of Doctrine Migrations (the `doctrine/migrations` package)?
  2. What is "lazy loading" in the context of Doctrine associations, and what problem does it help address?
  3. What is the purpose of cascading operations (e.g. `#[ORM\OneToMany(mappedBy: 'author', targetEntity: Post::class, cascade: ['persist', 'remove'])]`) on a Doctrine association?
  4. What is a "repository" in Doctrine, and what is its typical role?
  5. What is the purpose of Doctrine's "identity map" pattern within a single request/EntityManager session?
  6. What is the purpose of the `#[ORM\Id]` and `#[ORM\GeneratedValue]` attributes typically applied to an entity's primary key property?
  7. What is Doctrine DBAL (Database Abstraction Layer), and how does it relate to Doctrine ORM?
  8. What does the `#[ORM\Column]` attribute's `type` parameter control, e.g. `#[ORM\Column(type: 'string', length: 255)]`?
  9. What is the "EntityManager" in Doctrine, and what is its role?
  10. What is Doctrine (Doctrine ORM)?
  11. What is a Doctrine "entity"?
  12. What is the difference between `persist()` and `flush()` on Doctrine's EntityManager?
Gaps to close?
Read the curated Doctrine notes — core concepts, patterns, interview prep.
Doctrine notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web