public function getJunction() { if ($this->relationType == 'hasAndBelongsToMany') { $tables = $this->tables; sort($tables); return implode('_', $tables); } return false; }