Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.rst #360

Merged
merged 2 commits into from
Nov 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,9 @@ 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:

.. code-block:: php
greg0ire marked this conversation as resolved.
Show resolved Hide resolved

// src/DataFixtures/UserFixtures.php
// ...
Expand All @@ -171,6 +173,8 @@ exact same object via its name::
}
}

.. code-block:: php

// src/DataFixtures/GroupFixtures.php
// ...
class GroupFixtures extends Fixture
Expand Down