public function getTable() {

		if(null === $this -> table) {

			$path  = $this -> getNamespace($this, ['directory', 'entity'], ['directory', 'entity']) . Application :: get(['prefix', 'entity']);
			$path  = str_replace(DIRECTORY_SEPARATOR, '\\', $path);
			$class = new \ReflectionClass(get_class($this));
			
			$this -> table = NameConvert :: toSnakecase(str_replace($path, '', $class -> name));
		}

		return $this -> table;
	}
public function getTable() {

		if(null === $this -> table) {

			$path  = $this -> getNamespace($this, ['directory', 'entity'], ['directory', 'entity']) . Application :: get(['prefix', 'entity']);
			$path  = str_replace(DIRECTORY_SEPARATOR, '\\', $path);
			$class = new \ReflectionClass(get_class($this));
			
			$this -> table = NameConvert :: toSnakecase(str_replace($path, '', $class -> name));
		}

		return $this -> table;
	}
public function getTable ( ) { if ( null === $ this -> table ) { $ path = $ this -> getNamespace ( $ this , [ 'directory' , 'entity' ] , [ 'directory' , 'entity' ] ) . Application :: get ( [ 'prefix' , 'entity' ] ) ; $ path = str_replace ( DIRECTORY_SEPARATOR , '\\' , $ path ) ; $ class = new \ ReflectionClass ( get_class ( $ this ) ) ; $ this -> table = NameConvert :: toSnakecase ( str_replace ( $ path , '' , $ class -> name ) ) ; } return $ this -> table ; }
Returns the table from current namespace or from table variable if set
@return string
Returns the table from current namespace or from table variable if set