add doc for MappedSuperclass repositoryClass
This commit is contained in:
parent
e42d70a2b0
commit
43e4e1c389
@ -199,7 +199,7 @@ Optional attributes:
|
|||||||
|
|
||||||
|
|
||||||
- **repositoryClass**: Specifies the FQCN of a subclass of the
|
- **repositoryClass**: Specifies the FQCN of a subclass of the
|
||||||
Doctrine. Use of repositories for entities is encouraged to keep
|
EntityRepository. Use of repositories for entities is encouraged to keep
|
||||||
specialized DQL and SQL operations separated from the Model/Domain
|
specialized DQL and SQL operations separated from the Model/Domain
|
||||||
Layer.
|
Layer.
|
||||||
- **readOnly**: (>= 2.1) Specifies that this entity is marked as read only and not
|
- **readOnly**: (>= 2.1) Specifies that this entity is marked as read only and not
|
||||||
@ -574,6 +574,29 @@ The @MappedSuperclass annotation cannot be used in conjunction with
|
|||||||
@Entity. See the Inheritance Mapping section for
|
@Entity. See the Inheritance Mapping section for
|
||||||
:doc:`more details on the restrictions of mapped superclasses <inheritance-mapping>`.
|
:doc:`more details on the restrictions of mapped superclasses <inheritance-mapping>`.
|
||||||
|
|
||||||
|
Optional attributes:
|
||||||
|
|
||||||
|
|
||||||
|
- **repositoryClass**: (>= 2.2) Specifies the FQCN of a subclass of the EntityRepository.
|
||||||
|
That will be inherited for all subclasses of that Mapped Superclass.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code-block:: php
|
||||||
|
|
||||||
|
<?php
|
||||||
|
/** @MappedSuperclass */
|
||||||
|
class MappedSuperclassBase
|
||||||
|
{
|
||||||
|
// ... fields and methods
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @Entity */
|
||||||
|
class EntitySubClassFoo extends MappedSuperclassBase
|
||||||
|
{
|
||||||
|
// ... fields and methods
|
||||||
|
}
|
||||||
|
|
||||||
.. _annref_onetoone:
|
.. _annref_onetoone:
|
||||||
|
|
||||||
@OneToOne
|
@OneToOne
|
||||||
|
Loading…
x
Reference in New Issue
Block a user