table name
This commit is contained in:
		
							parent
							
								
									7b427ff799
								
							
						
					
					
						commit
						9c5ae5f121
					
				|  | @ -42,7 +42,7 @@ abstract class Model { | |||
| 
 | ||||
|     public static function Check() { | ||||
|         if (static::$table === null) { | ||||
|             static::$table = basename(get_called_class()) . 's'; | ||||
|             static::$table = basename(str_replace('\\', '/', get_called_class())) . 's'; | ||||
|         } | ||||
|         static::Initialize(); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue