@@ -1876,22 +1876,27 @@ In a nutshell:
1876
1876
> Every minor version means that it adds a new functionality i.e. 1.5 -> 1.6 (new methods)
1877
1877
>
1878
1878
> Every decimal version means that it patches/fixes/refactoring a previous functionality i.e. 1.5.0 -> 1.5.1 (fix)
1879
+
1880
+ * 4.9.1 2024-08-20
1881
+ * ** [ fix] ** fixed a bug with where, where the value is null.
1882
+ * 4.9: $this->...->where('col',null); // select * from table where col=null (invalid query)
1883
+ * 4.9.1: $this->...->where('col',null); // select * from table where col is null (valid)
1879
1884
* 4.9 2024-08-02
1880
- * [ update ] camelize update to consider "-" and "\_ " and not only "\_ "
1881
- * [ update ] update dependencies.
1885
+ * ** [ upd ] ** camelize update to consider "-" and "\_ " and not only "\_ "
1886
+ * ** [ upd ] ** update dependencies.
1882
1887
* 4.8 2024-07-06
1883
- * [ upd] added fetchMode for runRawQuery()
1884
- * [ new] added setFetchMode()
1885
- * [ new] PdoOneQuery added runRawQuery() which is a wrapper of PdoOne::runRawQuery()
1888
+ * ** [ upd] ** added fetchMode for runRawQuery()
1889
+ * ** [ new] ** added setFetchMode()
1890
+ * ** [ new] ** PdoOneQuery added runRawQuery() which is a wrapper of PdoOne::runRawQuery()
1886
1891
* 4.7.1 2024-06-07
1887
- * [ fix] ixed a phpdoc in PdoOneQuery::where()
1892
+ * ** [ fix] ** Fixed a phpdoc in PdoOneQuery::where()
1888
1893
* 4.7 2024-06-07
1889
- * [ upd] Update phpdoc using markdown without "php" because PHPStorm is not compatible with it.
1894
+ * ** [ upd] ** Update phpdoc using markdown without "php" because PHPStorm is not compatible with it.
1890
1895
* 4.6.2 2024-03-02
1891
- * [ fix] PdoOne::$cacheService is now mixed.
1896
+ * ** [ fix] ** PdoOne::$cacheService is now mixed.
1892
1897
* 4.6.1 2024-03-02
1893
- * [ fix] PdoOne::$instance is null by default (instead of undefined)
1894
- * [ upd] updated CliOne dependency.
1898
+ * ** [ fix] ** PdoOne::$instance is null by default (instead of undefined)
1899
+ * ** [ upd] ** updated CliOne dependency.
1895
1900
* 4.6 2024-03-02
1896
1901
* Updating dependency to PHP 7.4. The extended support of PHP 7.2 ended 3 years ago.
1897
1902
* Added more type hinting in the code.
@@ -2032,41 +2037,41 @@ it as a PHP file.
2032
2037
class.**
2033
2038
2034
2039
* 2.26 2022-02-19
2035
- * ** [ core] ** ** [ new] ** added more type hiting for the arguments for safety and stability of the tool.
2040
+ * ** [ core] ** **** [ new] ** ** added more type hiting for the arguments for safety and stability of the tool.
2036
2041
* ** [ cli] ** now the CLI is located a different file called pdoonecli Also the CLI has more features than before,
2037
2042
including the generation of the OOP classes.
2038
2043
2039
2044
* 2.25 2022-02-01
2040
- * ** [ core] ** ** [ new] ** Key-Value functionalities: setKvDefaultTable (),kv(),createTableKV(),dropTableKV(),getKV()
2045
+ * ** [ core] ** **** [ new] ** ** Key-Value functionalities: setKvDefaultTable (),kv(),createTableKV(),dropTableKV(),getKV()
2041
2046
,setKV(),garbageCollectorKV(),delKV(),flushKV(),existKV()
2042
- * ** [ core] ** ** [ new] ** createIndex()
2047
+ * ** [ core] ** **** [ new] ** ** createIndex()
2043
2048
2044
2049
* 2.24.1 2022-02-06
2045
2050
2046
- * ** [ core] ** ** [ fix] ** Now, most generation of classes are defined in templates instead of the code. It will keep
2051
+ * ** [ core] ** **** [ fix] ** ** Now, most generation of classes are defined in templates instead of the code. It will keep
2047
2052
the code clean while it will also save a few bits of memories (old: 6446 lines, current: 5963 lines).
2048
2053
2049
2054
* 2.24 2022-02-06
2050
2055
2051
2056
* ** [ repo] ** Now the library allows multiple connections using different repository class bases.
2052
2057
* ** [ _ BasePdoOne] ** Updated to version 7. ** You must rebuild the repository classes to rebuild the base class.**
2053
- * ** [ core] ** ** [ new] ** Now ** MessageContainer** is injected automatically
2054
- * ** [ core] ** ** [ new] ** You can obtain an instance of PdoOne using the static method PdoOne::instance()
2055
- * ** [ core] ** ** [ fix] ** Method lastError() always returns a string (empty if not error) instead of a NULL.
2058
+ * ** [ core] ** **** [ new] ** ** Now ** MessageContainer** is injected automatically
2059
+ * ** [ core] ** **** [ new] ** ** You can obtain an instance of PdoOne using the static method PdoOne::instance()
2060
+ * ** [ core] ** **** [ fix] ** ** Method lastError() always returns a string (empty if not error) instead of a NULL.
2056
2061
* ** [ core] ** ** [ change] ** <u >Method getMessages() rename to getMessageContainer()</u >
2057
- * ** [ core] ** ** [ new] ** Method getMessages() returns all the messages.
2058
- * ** [ core] ** ** [ new] ** Method getErrors(),getFirstError(),getLastError(),hasError() return error messages.
2059
- * ** [ core] ** ** [ new] ** Method getInfos(),getFirstInfo(),getLastInfo() return info messages.
2062
+ * ** [ core] ** **** [ new] ** ** Method getMessages() returns all the messages.
2063
+ * ** [ core] ** **** [ new] ** ** Method getErrors(),getFirstError(),getLastError(),hasError() return error messages.
2064
+ * ** [ core] ** **** [ new] ** ** Method getInfos(),getFirstInfo(),getLastInfo() return info messages.
2060
2065
2061
2066
* 2.23 2022-02-04
2062
2067
2063
- * ** [ PdoOneQuery] ** ** [ PdoOne] ** ** [ fix] ** Fixed compatibility with PHP 8.1. PHP 8.1 deprecates a lot of
2068
+ * ** [ PdoOneQuery] ** ** [ PdoOne] ** **** [ fix] ** ** Fixed compatibility with PHP 8.1. PHP 8.1 deprecates a lot of
2064
2069
functionalities.
2065
- * ** [ new] ** update dependency to php>=7.2.5 to stay in sync with Composer. If you have trouble, then you can use an
2070
+ * **** [ new] ** ** update dependency to php>=7.2.5 to stay in sync with Composer. If you have trouble, then you can use an
2066
2071
old version of the library
2067
2072
2068
2073
* 2.22.2 2022-02-01
2069
- * ** [ PdoOneQuery] ** ** [ fix] ** when the argument of a method is empty or zero. Now, it throws an exception.
2074
+ * ** [ PdoOneQuery] ** **** [ fix] ** ** when the argument of a method is empty or zero. Now, it throws an exception.
2070
2075
2071
2076
* 2.22.1 2022-01-03
2072
2077
* ** [ core] ** ** [ edit] ** generateAllClasses() now returns errors and warnings.
@@ -2077,48 +2082,48 @@ it as a PHP file.
2077
2082
* ** [ _ BasePdoOne] ** ** [ edit] ** the method page() allows to specify the size of the page.
2078
2083
2079
2084
* 2.21 2022-01-28
2080
- * ** [ core] ** ** [ fix] ** method singularTable() is now more exact to convert plural names to singular.
2085
+ * ** [ core] ** **** [ fix] ** ** method singularTable() is now more exact to convert plural names to singular.
2081
2086
* However, it is far from perfect.
2082
2087
* ** [ _ BasePdoOne] ** [ fixed] now several methods store the last error.
2083
2088
2084
2089
* 2.20 2022-01-04
2085
- * ** [ new] ** update dependency to php>=7.1.3. PHP 5.6 was discontinued 3 years ago.
2090
+ * **** [ new] ** ** update dependency to php>=7.1.3. PHP 5.6 was discontinued 3 years ago.
2086
2091
2087
2092
* 2.19
2088
- * ** [ new] ** ** [ core] ** callProcedure() could return a value other than true or false (SQL server only)
2089
- * ** [ new] ** ** [ sqlsrv] ** implemented callProcedure() and createProcedure()
2093
+ * **** [ new] ** ** ** [ core] ** callProcedure() could return a value other than true or false (SQL server only)
2094
+ * **** [ new] ** ** ** [ sqlsrv] ** implemented callProcedure() and createProcedure()
2090
2095
2091
2096
* 2.18
2092
- * ** [ new] ** [ oci] added oci (oracle) as a new driver.
2093
- * ** [ fix] ** ** [ core] ** dbTypeToPHP() and datesql2Text()
2094
- * ** [ new] ** ** [ core] ** clearError(),removeDoubleQuotes() and a new argument for connect()
2097
+ * **** [ new] ** ** [ oci] added oci (oracle) as a new driver.
2098
+ * **** [ fix] ** ** ** [ core] ** dbTypeToPHP() and datesql2Text()
2099
+ * **** [ new] ** ** ** [ core] ** clearError(),removeDoubleQuotes() and a new argument for connect()
2095
2100
2096
2101
* 2.16
2097
- * ** [ fix] ** ** [ sqlsrv] ** fixed the format of the date-time of sql.
2098
- * ** [ fix] ** ** [ sqlsrv] ** columnTable() returns distinct values.
2102
+ * **** [ fix] ** ** ** [ sqlsrv] ** fixed the format of the date-time of sql.
2103
+ * **** [ fix] ** ** ** [ sqlsrv] ** columnTable() returns distinct values.
2099
2104
2100
2105
* 2.15 2021-07-24
2101
2106
2102
2107
* 2.14.3 2021-06-15
2103
- * ** [ fix] ** ** [ orm] ** setCache()::first() and setCache()::count() didn't work correctly. fixed.
2108
+ * **** [ fix] ** ** ** [ orm] ** setCache()::first() and setCache()::count() didn't work correctly. fixed.
2104
2109
* Query now supports factoryNull()
2105
2110
2106
2111
* 2.14.2 2021-06-13
2107
- * ** [ fix] ** ** [ orm] ** useCache() and setRelation() do not chain correctly, fixed.
2108
- * ** [ fix] ** ** [ orm] ** useCache() doubled the cache. fixed.
2112
+ * **** [ fix] ** ** ** [ orm] ** useCache() and setRelation() do not chain correctly, fixed.
2113
+ * **** [ fix] ** ** ** [ orm] ** useCache() doubled the cache. fixed.
2109
2114
2110
2115
* 2.14.1 2021-06-09
2111
- * ** [ fix] ** custom_exception_handler when the error returned does not have an argument, or the argument is not an
2116
+ * **** [ fix] ** ** custom_exception_handler when the error returned does not have an argument, or the argument is not an
2112
2117
array.
2113
2118
2114
2119
* 2.14 2021-06-04
2115
2120
2116
2121
*
2117
2122
* ** _ BasePdoOneRepo** now works more closely with the class ** PdoOneQuery** , so each query is a different instance.
2118
2123
2119
- * ** [ fix] ** ** PdoOne** dateConvertInput() does not crash when the value is not a date.
2124
+ * **** [ fix] ** ** ** PdoOne** dateConvertInput() does not crash when the value is not a date.
2120
2125
2121
- * ** [ fix] ** ** PdoOne** throwError() does not stack errors but still triggers the last error (if any).
2126
+ * **** [ fix] ** ** ** PdoOne** throwError() does not stack errors but still triggers the last error (if any).
2122
2127
2123
2128
* [ changes] ❗ ** PdoOne** aggregate functions (sum,min,max,avg) now returns a value instead of generating a query.
2124
2129
@@ -2128,7 +2133,7 @@ it as a PHP file.
2128
2133
```
2129
2134
2130
2135
2131
- * **[fix]** **PdoOne** generateCodeArray() used for the generation of classes, returns the correct name when it is set.
2136
+ * **** [fix]** ** **PdoOne** generateCodeArray() used for the generation of classes, returns the correct name when it is set.
2132
2137
2133
2138
* [changes] **_BasePdoOneRepo**: reset(),getQuery(),dropTable(),useCache(),limit(),newQuery(),order(),innerjoin(),left()
2134
2139
,right()
@@ -2138,7 +2143,7 @@ it as a PHP file.
2138
2143
2139
2144
* 2.13.1 2021-05-22
2140
2145
2141
- * **[fix]** **[orm]** the method where() and limit() generated a new query every time, so the command
2146
+ * **** [fix]** ** **[orm]** the method where() and limit() generated a new query every time, so the command
2142
2147
ClaseRepo::recursive()::where() failed generated two queries instead of one.
2143
2148
2144
2149
* 2.13 2021-04-17
@@ -2150,16 +2155,16 @@ it as a PHP file.
2150
2155
(it could be disabled with setting $this->customError=false)
2151
2156
2152
2157
* 2.11.1 2021-04-17
2153
- * **[fix]** Mysql extension now knows the type int24 (plus other types of variables).
2154
- * **[fix]** Regresion, some removed { } caused a bug when they are followed by []
2158
+ * **** [fix]** ** Mysql extension now knows the type int24 (plus other types of variables).
2159
+ * **** [fix]** ** Regresion, some removed { } caused a bug when they are followed by []
2155
2160
* [code]
2156
2161
2157
2162
* 2.11 2021-04-17
2158
2163
2159
2164
* [code] Lots of cleanups. Removed unneeding { }. Merged common code in branches.
2160
2165
2161
2166
* 2.10.3 2021-04-14
2162
- * **[fix]** BasePdoOne fixed method getRecursive(), it generated a new query, and now it reuses a query (if any).
2167
+ * **** [fix]** ** BasePdoOne fixed method getRecursive(), it generated a new query, and now it reuses a query (if any).
2163
2168
* It also returns the query
2164
2169
2165
2170
* 2.10.2 2021-04-06
0 commit comments