From 789a616dd4dc5a4a337b57f6d44d607a8248e379 Mon Sep 17 00:00:00 2001 From: bruteforks <116930331+bruteforks@users.noreply.github.com> Date: Wed, 30 Nov 2022 17:28:51 -0600 Subject: [PATCH] Update first_steps.rst Not sure if this is the right place, but I was just stuck on this issue for a long time before figuring it out. --- Resources/doc/first_steps.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Resources/doc/first_steps.rst b/Resources/doc/first_steps.rst index 036c2e36..c0a9bf02 100644 --- a/Resources/doc/first_steps.rst +++ b/Resources/doc/first_steps.rst @@ -46,7 +46,8 @@ For Doctrine to be able to do this, you have to create "metadata", or configuration that tells Doctrine exactly how the ``Product`` class and its properties should be *mapped* to MongoDB. This metadata can be specified in a number of different formats including XML or directly inside the -``Product`` class via annotations or PHP 8 attributes: +``Product`` class via annotations or PHP 8 attributes (if using attributes, +you need to change type: annotation to type: attribute in doctrine_mongodb.yaml): .. versionadded:: 4.4