Skip to content

PHPORM-160 Add tests to documentation examples #2775

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

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions docs/eloquent-models/relationships.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ button to see the data created by running the code:

.. io-code-block::

.. input:: /includes/eloquent-models/relationships/RelationshipController.php
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
:language: php
:dedent:
:start-after: begin one-to-one save
Expand Down Expand Up @@ -125,7 +125,7 @@ button to see the data created by running the code:
The following sample code shows how to access the related models by using
the dynamic properties as defined in the example classes:

.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
:language: php
:dedent:
:start-after: begin planet orbit dynamic property example
Expand Down Expand Up @@ -180,7 +180,7 @@ button to see the data created by running the code:

.. io-code-block::

.. input:: /includes/eloquent-models/relationships/RelationshipController.php
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
:language: php
:dedent:
:start-after: begin one-to-many save
Expand Down Expand Up @@ -219,7 +219,7 @@ button to see the data created by running the code:
The following sample code shows how to access the related models by using
the dynamic properties as defined in the example classes.

.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
:language: php
:dedent:
:start-after: begin planet moons dynamic property example
Expand Down Expand Up @@ -280,7 +280,7 @@ button to see the data created by running the code:

.. io-code-block::

.. input:: /includes/eloquent-models/relationships/RelationshipController.php
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
:language: php
:dedent:
:start-after: begin many-to-many save
Expand Down Expand Up @@ -345,7 +345,7 @@ button to see the data created by running the code:
The following sample code shows how to access the related models by using
the dynamic properties as defined in the example classes.

.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
:language: php
:dedent:
:start-after: begin many-to-many dynamic property example
Expand Down Expand Up @@ -410,7 +410,7 @@ running the code:

.. io-code-block::

.. input:: /includes/eloquent-models/relationships/RelationshipController.php
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
:language: php
:dedent:
:start-after: begin embedsMany save
Expand Down Expand Up @@ -501,7 +501,7 @@ to see the data created by running the code:

.. io-code-block::

.. input:: /includes/eloquent-models/relationships/RelationshipController.php
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
:language: php
:dedent:
:start-after: begin cross-database save
Expand Down

This file was deleted.

Loading