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  fdellutri 2 years, 11 months ago.

  • Creator
    Topic
  • #7530

    fdellutri
    Participant

    Dear all,
    I’m wondering if there is a way to show an entity calculated field (i.e. a field that is not mapped in doctrine) in a datagrid.

    No filtering/sorting is required.

    Bests

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #7535

    Alexandr Smaga
    Participant

    Hello @fdellutri !

    Of course it’s possible, also sorting and filtering will work as well.
    See some examples here and here

    #7541

    fdellutri
    Participant

    Hi @Alexandr,
    Thank you for the response, but what I meant as “calculated” field was an entity’s getter that calculates and returns a value that is not persisted in doctrine.

    In short I have a class like this:

    And I want to show, along other values, the “getTotal” value in a datagrid.
    Can I do that?

    Thankyou.

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

You must be logged in to reply to this topic.