ssossossossosso

Forums

Forums OroPlatform OroPlatform – How do I? Questions Datagrid with arrays

This topic contains 1 reply, has 2 voices, and was last updated by  Yevhen Shyshkin 4 years, 5 months ago.

  • Creator
    Topic
  • #29917

    SkaiBoa
    Participant

    Hello,

    i’m trying to use the Datagridmanager only with an array of wrapper-objects. But i run into problems with methods that need informations for Doctrine (e.g. AbstractQueryFactory throws an Exception, that the Querybuilder is not configured).

    Is there any solution to work with Datagrids without Doctrineentities and only with arrays ?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #29918

    Yevhen Shyshkin
    Participant

    There is no such possibility for now.

    If you want to use plain array as a datasource, you should implement QueryFactoryInterface and ProxyQueryInterface that will works with array data. Also if you need pagination you should also implement PagerInterface.

    Example of custom implementation can be found SearchBundle.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.