Skip to content

Commit

Permalink
Merge pull request #126 from barelon/patch-1
Browse files Browse the repository at this point in the history
Fix some typos in annotations reference
  • Loading branch information
guilhermeblanco committed Sep 18, 2012
2 parents 9ae1f80 + c463121 commit fa29d36
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions en/reference/annotations-reference.rst
Expand Up @@ -295,7 +295,7 @@ Example:
/**
* @Id
* @Column(type="integer")
* @generatedValue(strategy="IDENTITY")
* @GeneratedValue(strategy="IDENTITY")
*/
protected $id = null;
Expand Down Expand Up @@ -634,13 +634,17 @@ Example:
.. code-block:: php
<?php
/** @MappedSuperclass */
/**
* @MappedSuperclass
*/
class MappedSuperclassBase
{
// ... fields and methods
}
/** @Entity */
/**
* @Entity
*/
class EntitySubClassFoo extends MappedSuperclassBase
{
// ... fields and methods
Expand All @@ -662,7 +666,7 @@ Required attributes:
Optional attributes:

- **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:
Expand Down Expand Up @@ -935,7 +939,7 @@ Required 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.

Example:
Expand Down Expand Up @@ -1102,8 +1106,8 @@ Example:
<?php
/**
* @column(type="integer")
* @version
* @Column(type="integer")
* @Version
*/
protected $version;

0 comments on commit fa29d36

Please sign in to comment.