public function getAssociationReferenceNames()
    {
        $referenceNames = array();
        foreach ($this->associationMappings as $assoc) {
            $referenceNames[] = $assoc->getReferenceField($this->getManagerIdentifier()) ?: $assoc->getField();
        }

        return $referenceNames;
    }