Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

How to display properties for the object #113

Closed
ArlingtonHouse opened this Issue · 1 comment

2 participants

@ArlingtonHouse

Hi, this is a great resource, but I'm not sure of the best way to define the properties of the underlying Class in the documentation. I'd like a section "Properties" that draws from the Exposed properties, i.e.

properties="Acme/DemoBundle/Entity/Comment",

Is there a way to do this with the Nelmio Bundle? Thanks!

@duanegran

Yes, but you need to install the JMSSerliazerBundle and create annotations with @JMS on each of your properties in your entity. It took me a while to figure it out, but if you look at the ApiDocBundle\Tests\Fixtures\Model\JmsTest.php it may help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.