📄️ Using Entity Constructors
Internally, MikroORM never calls entity constructor on managed entities (those loaded via EntityManager), so you are free to use it as you wish. The constructor will be called only when you instantiate the class yourself via new operator (or when using em.create() to create new entity instance), so it is a handy place to require your data when creating new entity.
📄️ Schema First Guide
Although MikroORM is primarily a "code first" ORM, it can also be used in a "schema first" approach.
📄️ Using native BigInt PKs (MySQL and PostgreSQL)
Since v6, bigints are represented by the native BigInt type, and as such, they don't require explicit type in the decorator options:
📄️ Creating Custom Driver
If you want to use database that is not currently supported, you can implement your own driver. To do so, you will need to design 4 classes: