ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by  archy_bold 1 year, 2 months ago.

  • Creator
    Topic
  • #22381

    archy_bold
    Participant

    Hi there.

    Is it possible to join to a non-related entity in datagrids at all? I have an entity that it doesn’t really make sense to relate to another except in a one-way relationship. However, I want a datagrid of the entity without the relationships with a count of the number of times it’s used through the one-way relationship.

    Here is my datagrid:

    I saw something done similar in some documentation: https://github.com/orocrm/platform/blob/1.9/src/Oro/Bundle/DataGridBundle/Resources/doc/backend/editable_grid_cells.md

    But I get the following error when I try to access a page with that datagrid on it:

    Invalid type for path "query.join.left.join". Expected array, but got string

    So is it possible to define another entity through the ‘query.join.left.join’ attribute?

    Thanks,
    Simon

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #22471
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi,

    Try to use this instead your join definition (you are missed “-” symbol):

    #22472

    archy_bold
    Participant

    Ha, I’m an idiot! Thanks for the help. It worked.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.