Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b1aab8

Browse files
committed
add missing code-block directive
1 parent0428c57 commit9b1aab8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎reference/forms/types/options/data_class.rst.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ data_class
99
This option is used to set the appropriate data mapper to be used by the form,
1010
so you can use it for any form field type which requires an object.
1111

12+
.. code-block:: php
13+
1214
$builder->add('media', 'sonata_media_type', array(
1315
'data_class' => 'Acme\DemoBundle\Entity\Media',
1416
));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp