Re:Union Types have been accepted for PHP 8
by xellisx on Tuesday November 12, 2019 @07:11AM
(#21513444)
If it were up to me, it would all be SQL queries. Maybe even use the library I rebuilt - https://github.com/ellisgl/GeekLab-GLPDO2
I use Symfony for quite some time and at one point I stopped using Doctrine data mapper. The DBAL and the query builder are enough.