plugin/exo/Entity/ItemType/MatchQuestion.php
public function addAssociation(Association $association)
    {
        if (!$this->associations->contains($association)) {
            $this->associations->add($association);
            $association->setQuestion($this);
        }
    }
public function addAssociation(Association $association)
    {
        if (!$this->associations->contains($association)) {
            $this->associations->add($association);
            $association->setQuestion($this);
        }
    }
public function addAssociation ( Association $ association ) { if ( ! $ this -> associations -> contains ( $ association ) ) { $ this -> associations -> add ( $ association ) ; $ association -> setQuestion ( $ this ) ; } }
Adds an association.

@param Association $association
Adds an association .