projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fully implement naming=v8 and force_ascii
[dbsrgits/DBIx-Class-Schema-Loader.git]
/
lib
/
DBIx
/
Class
/
Schema
/
Loader
/
RelBuilder.pm
diff --git
a/lib/DBIx/Class/Schema/Loader/RelBuilder.pm
b/lib/DBIx/Class/Schema/Loader/RelBuilder.pm
index
f4d65b6
..
9d89f49
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/RelBuilder.pm
+++ b/
lib/DBIx/Class/Schema/Loader/RelBuilder.pm
@@
-304,7
+304,9
@@
sub _remote_attrs {
sub _sanitize_name {
my ($self, $name) = @_;
- $name =~ s/\W+/_/g;
+ $name = $self->loader->_to_identifier('relationships', $name, '_');
+
+ $name =~ s/\W+/_/g; # if naming >= 8 to_identifier takes care of it
return $name;
}