Skip to content

@JMS\VirtualProperty not working when using @JMS\Groups #1674

Open
@lukepass

Description

@lukepass

Hello, I noticed a bug today: when looking at the API documentation if I have a model with @JMS\VirtualProperty and @JMS\Groups the virtual property is not correctly displayed in the documentation.

The property is correctly serialized when calling the web service, the problem is just in the documentation:

/**
 * Returns the posting user.
 *
 * @JMS\VirtualProperty
 * @JMS\Type("AppBundle\Entity\User")
 * @JMS\Groups({"homepage"})
 * @JMS\Expose
 */
public function getUser()
{
    return $this->challengeEntry->getUser();
}

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions