public function getAssociationTable() {
		if($this->type() !== 'HMABT')
			throw new \Exception('Association table can only be used for HMABT relations.');

		if(!$this->isPolymorphic() && $this->reverse()->isPolymorphic())
			$entityShortName = $this->reverse()->get('as');
		else
			$entityShortName = $this->definition->getShortName();

		if($this->isPolymorphic())
			$relationEntityShortName = $this->get('as');
		else
			$relationEntityShortName = $this->getTargetDefinition()->getShortName();

		if($entityShortName < $relationEntityShortName)
			return $this->dataMapper->getPrefix().$entityShortName.'_'.$relationEntityShortName;
		else
			return $this->dataMapper->getPrefix().$relationEntityShortName.'_'.$entityShortName;
	}