rename belongs_to to refers_to, with belongs_to remaining as alias
Christian Walde [Fri, 1 Mar 2013 13:50:51 +0000 (14:50 +0100)]
lib/DBIx/Class/Relationship/BelongsTo.pm

index e55d1bd..e2adbd8 100644 (file)
@@ -14,7 +14,9 @@ our %_pod_inherit_config =
    class_map => { 'DBIx::Class::Relationship::BelongsTo' => 'DBIx::Class::Relationship' }
   );
 
-sub belongs_to {
+sub belongs_to  { goto \&refers_to }
+
+sub refers_to {
   my ($class, $rel, $f_class, $cond, $attrs) = @_;
 
   # assume a foreign key contraint unless defined otherwise