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