Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

How to display object with mapped relation in list using Doctrine ORM #52

@ardianys

Description

@ardianys

Previously I have tried Sonata Admin Bundle, but I can't change how this bundle fetch data from one object. See my issue in

https://github.com/sonata-project/SonataAdminBundle/issues/365

Now I'm trying White October Admin Bundle, I think it's very flexible and I can implement row level ownership since I can modify how this admin page fetch an object.

Actually I got mapped entities in edit / update form. But I got this error in list pages.

An exception has been thrown during the rendering of a template 
("Catchable Fatal Error: Object of class Doctrine\ORM\PersistentCollection 
could not be converted to string in /..l/symfony/app/cache/dev/twig/e5/1d/509753a8d98a1daf9f3f90eb99d3.php line 391") 
in "WhiteOctoberAdminBundle::default\/list.html.twig" at line 109. 

Thanks for your help.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions