Skip to content
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.

Commit

Permalink
Merge pull request #22 from wjzijderveld/nullable-annotation-info
Browse files Browse the repository at this point in the history
Added some info about the nullable attribute
  • Loading branch information
dbu committed Mar 13, 2013
2 parents a19e99e + 1abe165 commit aa200fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion en/reference/annotations-reference.rst
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ Common optional attributes:
See :ref:`Mapping multivalue properties <basicmapping_mappingmultivalueproperties>`. See :ref:`Mapping multivalue properties <basicmapping_mappingmultivalueproperties>`.
- **translated**: ``true`` to specify that the property should be translatable, requires the - **translated**: ``true`` to specify that the property should be translatable, requires the
``translator`` attribute to be specified in :ref:`@Document<annref_document>`. ``translator`` attribute to be specified in :ref:`@Document<annref_document>`.
- **nullable**: ``true`` to specifiy that this property doesn't have a required value, used
when loading a translation, to allow loading a node with a missing translated property.


Examples: Examples:


Expand All @@ -156,10 +158,15 @@ Examples:
<?php <?php
/** /**
* @String() * @String(translated=true)
*/ */
protected $title; protected $title;
/**
* @String(translated=true, nullable=true)
*/
protected $subTitle;
/** /**
* @Boolean() * @Boolean()
*/ */
Expand Down

0 comments on commit aa200fa

Please sign in to comment.