Browse Source

does not use underscores for packages.

Nicolas Cannasse 19 years ago
parent
commit
e25287288f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/neko/db/Manager.hx

+ 1 - 1
std/neko/db/Manager.hx

@@ -56,7 +56,7 @@ class Manager<T : Object> {
 
 	public function new( cl : Dynamic ) {
 		// get basic infos
-		table_name = quoteField(if( cl.TABLE_NAME != null ) cl.TABLE_NAME else cl.__name__.join("_"));
+		table_name = quoteField(if( cl.TABLE_NAME != null ) cl.TABLE_NAME else cl.__name__[cl.__name__.length-1]);
 		table_keys = if( cl.TABLE_IDS != null ) cl.TABLE_IDS else ["id"];
 		class_proto = cl;