|
@@ -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;
|
|
|
|