1
0
mirror of synced 2025-02-09 08:49:26 +03:00

Clarify language regarding ArrayCollections.

See https://groups.google.com/forum/#!topic/doctrine-user/yJ8ABqBP5mI
This commit is contained in:
Greg Bell 2016-07-12 16:05:20 +10:00
parent 44feacd327
commit da43aa2d49

View File

@ -616,12 +616,12 @@ domain model to match the requirements:
}
}
Whenever an entity is recreated from the database, an Collection
implementation of the type Doctrine is injected into your entity
instead of an array. Compared to the ArrayCollection this
implementation helps the Doctrine ORM understand the changes that
have happened to the collection which are noteworthy for
persistence.
You use Doctrine's ArrayCollections in your Doctrine models, rather
than plain PHP arrays, so that Doctrine can watch what happens with
them and act appropriately. Note that if you dump your entities,
you'll see a "PersistentCollection" in place of your ArrayCollection,
which is just an
internal Doctrine class with the same interface.
.. warning::