Prepare migration to `Mikro-ORM` v6
SamJakob opened this issue · comments
SamJakob commented
See: https://mikro-orm.io/docs/next/upgrading-v5-to-v6
Main issues expected to be:
- The
connect
parameter is no longer accepted in theinit
method. (This was never used and connecting to the database didn't behave as necessarily expected in Cinnamon due to an oversight, this is fixed in the upcoming v0.2.0). - The
type
option being removed in favor of driver exports. - The driver package is now the preferred way to import everything. (This might be worth abstracting in Cinnamon to maintain some level of database agnosticism).
-
ref()
vswrap()
(not necessarily for framework code, but for documentation) - Similarly for
require()
calls forMigrator
,EntityGenerator
andSeeder
- Greater reliance on passing initialization options to
Mikro-ORM.init
. Will need to re-work or double check options for init and for config.