Skip to content

Commit

Permalink
minor #157 [Doc] Fix type description for new/edit actions (ogizanagi)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

[Doc] Fix type description for new/edit actions

Related to #156 .
Do not 'solve' it, but provide at least a more accurate description of the `type` property for new & edit actions, until we have a solution (if we need one).

Commits
-------

6a38328 [Doc] Fix type description for new/edit actions
  • Loading branch information
javiereguiluz committed Mar 6, 2015
2 parents db84cc3 + 6a38328 commit 769b01f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Resources/doc/6-customizing-new-edit-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,10 @@ These are the options that you can define for form fields:
* `property`: it's the name of the associated Doctrine entity property. It
can be a real property or a "virtual property" based on an entity method.
This is the only mandatory option.
* `type`: it's the type of form field that will be displayed. If you don't
specify a type, EasyAdmin will guess the best type for it. For now, you
can only use any of the valid [Symfony Form Types](http://symfony.com/doc/current/reference/forms/types.html).
* `type`: it's the doctrine type of the field that will be displayed.
It will be converted internally into the [corresponding form type](../../Configuration/Configurator.php#L34)
(from available [Symfony Form Types](http://symfony.com/doc/current/reference/forms/types.html)).
If you don't specify a type, EasyAdmin will guess the best type for it.
* `label`: it's the title that will be displayed for the form field. The
default title is the "humanized" version of the property name.
* `help`: it's the help message that will be displayed below the form field.
Expand Down

0 comments on commit 769b01f

Please sign in to comment.