It allows comparing a related model without issuing a query to retrieve
that model.
- added functional tests for both HasOne and also BelongsTo relations
- added docs
Others:
- added the new unit test case tst_Relations_Connection_Independent
The upsert method needed modification in the TinyBuilder, it has to also
manage model timestamps.
- also added proxies
- added functional test that also tests timestamps
- added functional test on the BelongsToMany relation
- updated number of unit tests to 1408
Added getters for obtaining connection configuration.
- original configurations from the DatabaseManager
- and configurations from the DatabaseConnection
The MySQL >=8.0.19 supports aliases in the VALUES and SET clauses
of INSERT INTO ... ON DUPLICATE KEY UPDATE statement for the row to be
inserted and its columns. It also generates warning from >=8.0.20 if
an old style used.
This enhancement detects the MySQL version and on the base of it uses
alias during the upsert call.
Also a user can override the version through the MySQL database
configuration. It helps to save/avoid one database query
(select version()) during the upsert method call or during connecting
to the MySQL database (version is needed if strict mode is enabled).
- added unit and functional tests
- updated number of unit tests to 1402
- updated upsert docs
- added ConfigUtils to avoid duplicates
Others:
- added the version database configuration everywhere
- docs added few lines about MySQL version configuration option
- docs updated database configurations, added a new missing options