Skip to content

Commit bce69e8

Browse files
committed
docs: update outdated note
1 parent f927928 commit bce69e8

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

user_guide_src/source/concepts/factories.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ The following code loads **app/Libraries/Sub/SubLib.php** if it exists:
8686
.. literalinclude:: factories/013.php
8787
:lines: 2-
8888

89+
.. _factories-passing-fully-qualified-classname:
90+
8991
Passing Fully Qualified Classname
9092
---------------------------------
9193

user_guide_src/source/general/modules.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,11 @@ Model files are automatically discovered whenever using the :php:func:`model()`
272272

273273
.. note:: We don't recommend you use the same short classname in modules.
274274

275-
.. note:: ``model()`` finds the file in **app/Models/** when there is a class with the same shortname,
276-
even if you specify a fully qualified class name like ``model(\Acme\Blog\Model\PostModel::class)``.
277-
This is because ``model()`` is a wrapper for the ``Factories`` class which uses ``preferApp`` by default. See :ref:`factories-loading-class` for more information.
275+
.. note:: Prior to v4.4.0, ``model()`` finds the file in **app/Models/** when
276+
there is a class with the same shortname, even if you specify a fully qualified
277+
class name like ``model(\Acme\Blog\Model\PostModel::class)``.
278+
See the Note in :ref:`factories-passing-fully-qualified-classname` for more
279+
information.
278280

279281
Views
280282
=====

0 commit comments

Comments
 (0)