public function removeRelation()
{
if ($this->relationType == 'hasAndBelongsToMany') {
$junction = $this->getJunction();
$this->deleteRelationData($junction, $this->tables['local']);
$this->deleteRelationData($junction, $this->tables['foreign']);
}
$this->deleteRelationData($this->tables['local'], $this->tables['foreign']);
}