Fix some typos in annotations reference
- Changed capitalization of the `@GeneratedValue` and `@Version` examples which incorrectly used lower case - Fixed parameter names in `@NamedNativeQuery` and `@SqlResultSetMapping` - Changed the Docblock style for the @MappedSuperclass example to the style used by all examples
This commit is contained in:
parent
9ae1f804e1
commit
c463121da8
@ -295,7 +295,7 @@ Example:
|
|||||||
/**
|
/**
|
||||||
* @Id
|
* @Id
|
||||||
* @Column(type="integer")
|
* @Column(type="integer")
|
||||||
* @generatedValue(strategy="IDENTITY")
|
* @GeneratedValue(strategy="IDENTITY")
|
||||||
*/
|
*/
|
||||||
protected $id = null;
|
protected $id = null;
|
||||||
|
|
||||||
@ -634,13 +634,17 @@ Example:
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/** @MappedSuperclass */
|
/**
|
||||||
|
* @MappedSuperclass
|
||||||
|
*/
|
||||||
class MappedSuperclassBase
|
class MappedSuperclassBase
|
||||||
{
|
{
|
||||||
// ... fields and methods
|
// ... fields and methods
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @Entity */
|
/**
|
||||||
|
* @Entity
|
||||||
|
*/
|
||||||
class EntitySubClassFoo extends MappedSuperclassBase
|
class EntitySubClassFoo extends MappedSuperclassBase
|
||||||
{
|
{
|
||||||
// ... fields and methods
|
// ... fields and methods
|
||||||
@ -662,7 +666,7 @@ Required attributes:
|
|||||||
Optional attributes:
|
Optional attributes:
|
||||||
|
|
||||||
- **resultClass**: The class of the result.
|
- **resultClass**: The class of the result.
|
||||||
- **sqlResultSetMapping**: The name of a SqlResultSetMapping, as defined in metadata.
|
- **resultSetMapping**: The name of a SqlResultSetMapping, as defined in metadata.
|
||||||
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@ -935,7 +939,7 @@ Required attributes:
|
|||||||
|
|
||||||
Optional attributes:
|
Optional attributes:
|
||||||
|
|
||||||
- **resultClass**: Array of @EntityResult, Specifies the result set mapping to entities.
|
- **entities**: Array of @EntityResult, Specifies the result set mapping to entities.
|
||||||
- **columns**: Array of @ColumnResult, Specifies the result set mapping to scalar values.
|
- **columns**: Array of @ColumnResult, Specifies the result set mapping to scalar values.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@ -1102,8 +1106,8 @@ Example:
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @column(type="integer")
|
* @Column(type="integer")
|
||||||
* @version
|
* @Version
|
||||||
*/
|
*/
|
||||||
protected $version;
|
protected $version;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user