private function getRelationsForeignKeyName(HasOneOrMany $relation): string
	{
		return method_exists($relation, 'getForeignKeyName') ? $relation->getForeignKeyName() : $relation->getPlainForeignKey();
	}