private function checkConstraintTable(Constraint $constraint) { $source_table_name = $constraint->getSourceTable()->getFullName(); if ($source_table_name != $this->getFullName()) { throw new \Exception(t('Source column table %s does not match current table %s', $source_table_name, $this->getFullName())); } }