How do I add a custom Doctrine data type to SlimPHP Framwork?

I need to add tinyint type to Doctrine.
Many examples for Symfony but no examples for SlimPHP…

What have you tried so far?

Hello,
You can define a custom mapping type (TinyIntType) that extends Doctrine\DBAL\Types\Type, register it in your SlimPHP setup to handle conversions between PHP and database values, and use it in your entity definitions.

How can i register custom class of type Doctirna in SlimPHP?

Hopefully the documentation contains what you are asking for:

https://www.slimframework.com/docs/v4/cookbook/database-doctrine.html



I did it like this, but it doesn’t work…