We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello How can I tell Hateoas\Relation that using embedded does not create an extra query?
From my controller to retrieve the data I create a query with join, and then Hateas creates another when I use embedded
Entity:
/** * Local * * @ORM\Table(name="local") * @ORM\Entity(repositoryClass="AppBundle\Repository\LocalRepository") * * @Serializer\ExclusionPolicy("all") * * @Hateoas\Relation( * "self", * href = @Hateoas\Route( * "api_local_show", * parameters={ "code" = "expr(object.getId())" } * ), * embedded="expr(object.getExtra())" * ) */ class Local { .... /** * @var Extra * * @ORM\OneToOne(targetEntity="Extra") * @ORM\JoinColumn(name="extra_id", referencedColumnName="id") * * @Serializer\Exclude() */ private $extra; }
I do not know if I explained correctly, thank you very much
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello
How can I tell Hateoas\Relation that using embedded does not create an extra query?
From my controller to retrieve the data I create a query with join, and then Hateas creates another when I use embedded
Entity:
I do not know if I explained correctly, thank you very much
The text was updated successfully, but these errors were encountered: