You are browsing a version that has not yet been released. |
MongoDB ODM Documentation
The Doctrine MongoDB ODM documentation is comprised of tutorials, a reference section and cookbook articles that explain different parts of the Object Document Mapper.
Getting Help
If this documentation is not helping to answer questions you have about the Doctrine MongoDB ODM, don't panic. You can get help from different sources:
- Slack chat room #mongodb-odm
- On Stack Overflow
- The Doctrine Mailing List
- Report a bug on GitHub.
Getting Started
The best way to get started is with the Setup section in the introduction tutorial. Use the sidebar to browse other tutorials and documentation for the Doctrine PHP MongoDB ODM.
AI Agent Skill
This package ships a coding-agent skill under skills/mongodb-odm/ that teaches an AI
assistant how to use the ODM correctly: mapping documents, querying and aggregating,
modeling references and embeds, and using Atlas Search, Vector Search, and Queryable
Encryption — while avoiding the mistakes that come from treating it like a SQL ORM.
The skill is declared in composer.json under extra.ai-mate.skills, so projects
using Symfony AI Mate discover it automatically,
with no configuration in the consuming project:
composer require --dev symfony/ai-matevendor/bin/mate initvendor/bin/mate discover
Mate installs the skill as mate-mongodb-odm and mirrors it into .claude/skills/
and .agents/skills/. Agents that read SKILL.md directly can be pointed at
vendor/doctrine/mongodb-odm/skills/mongodb-odm/SKILL.md.
