This topic contains 2 replies, has 2 voices, and was last updated by jakabadambalazs 8 years, 11 months ago.
- Topic
Hello,
I developed a Bundle that implements Taggable interface (“question bundle”).
Then, I did a datagrid that list my records with their tags. It works fine, but so I have duplicate records: if a question has 6 tags, the datagrid shows 6 rows about this record.
I would display 1 row for each question, and on every row a string with a list of tags associated… It’s possible?
For example:ID – QUESTION – TAGS
4 – What is Maradona’s first name? – Soccer, Argentine, Naples, LegendThis is my datagrid:
1234567891011121314151617181920212223242526272829303132333435my_datagrid:extended_entity_name: %ec_question.entity.class%source:type: ormquery:select:- q.id as questionId- q.text- tag.namefrom:- { table: %ec_question.entity.class%, alias: q}join:inner:-join: Oro\Bundle\TagBundle\Entity\Taggingalias: taggingconditionType: WITHcondition: "(tagging.recordId=q.id)"-join: Oro\Bundle\TagBundle\Entity\Tagalias: tagconditionType: WITHcondition: "(tagging.tag=tag.id)"where:and:- tagging.entityName = '<name of my bundle>'columns:questionId:label: ec.question_type.id.labeltext:label: ec.question.text.labelname:label: nameThanks!
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.