1
0
mirror of synced 2025-01-29 19:41:45 +03:00

add doc for MappedSuperclass repositoryClass

This commit is contained in:
Fabio B. Silva 2011-12-19 18:35:01 -02:00
parent e42d70a2b0
commit 43e4e1c389

View File

@ -199,7 +199,7 @@ Optional attributes:
- **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
Layer.
- **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
: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:
@OneToOne