Skip to content

Commit

Permalink
Merge pull request #391 from mpdude/patch-1
Browse files Browse the repository at this point in the history
Add a note that object references only work for Entities
  • Loading branch information
greg0ire committed May 24, 2023
2 parents 121bbeb + 3f8e63d commit 97e224e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ Sharing Objects between Fixtures
When using multiple fixtures files, you can reuse PHP objects across different
files thanks to the **object references**. Use the ``addReference()`` method to
give a name to any object and then, use the ``getReference()`` method to get the
exact same object via its name:
exact same object via its name.

.. note::

Adding object references only works for ORM entities or ODM documents.

.. code-block:: php
Expand Down

0 comments on commit 97e224e

Please sign in to comment.