Skip to content

Multiple <count-property></count-property> in list #7312

Discussion options

You must be logged in to vote

The entityName is mapped in the queryBuilder to the join alias of doctrine so you need change the query builder to have a unique name per join.

        <count-property name="nombre_inscription" visibility="yes" translation="Inscrits">
            <field-name>id</field-name>
+           <entity-name>Inscription_1</entity-name>

            <joins>
                <join>
+                   <entity-name>Inscription_1</entity-name>
                    <field-name>App\Entity\Atelier.inscriptions</field-name>
+                   <condition>Inscription_1.etat = 1</condition>
                </join>
            </joins>
        </count-property>

        <count-property name="nombre_liste_attent…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GandonNicolas
Comment options

Answer selected by alexander-schranz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants