Skip to content

Twig templates render function & Doctrine proxy object - symfony 2.2.0 #7124

@zd-dalibor

Description

@zd-dalibor

When you pass doctrine proxy object to twig render function e.g.

{{ render(controller('ExampleBundle:Example:index', {'item', md.item})) }}

where "md" is entity with property "item" that represent object of many to one relationship, render function converts proxy object to array and "indexAction" of "ExampleController" gets that array instead of proxy object and you lose all access to getters and setters.

See this issue #7122;

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